Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
udp_multicast_driver.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/acomms/protobuf/udp_multicast_driver.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fudp_5fmulticast_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>
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>
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_goby_2facomms_2fprotobuf_2fudp_5fmulticast_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_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto;
53namespace goby {
54namespace acomms {
55namespace udp_multicast {
56namespace protobuf {
57class Config;
58struct ConfigDefaultTypeInternal;
59extern ConfigDefaultTypeInternal _Config_default_instance_;
61struct Config_RateBytesPairDefaultTypeInternal;
62extern Config_RateBytesPairDefaultTypeInternal _Config_RateBytesPair_default_instance_;
63} // namespace protobuf
64} // namespace udp_multicast
65} // namespace acomms
66} // namespace goby
67PROTOBUF_NAMESPACE_OPEN
68template<> ::goby::acomms::udp_multicast::protobuf::Config* Arena::CreateMaybeMessage<::goby::acomms::udp_multicast::protobuf::Config>(Arena*);
69template<> ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair* Arena::CreateMaybeMessage<::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair>(Arena*);
70PROTOBUF_NAMESPACE_CLOSE
71namespace goby {
72namespace acomms {
73namespace udp_multicast {
74namespace protobuf {
75
76// ===================================================================
77
79 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.udp_multicast.protobuf.Config.RateBytesPair) */ {
80 public:
83 explicit PROTOBUF_CONSTEXPR Config_RateBytesPair(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
84
88 *this = ::std::move(from);
89 }
90
92 CopyFrom(from);
93 return *this;
94 }
96 if (this == &from) return *this;
97 if (GetOwningArena() == from.GetOwningArena()
98 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
99 && GetOwningArena() != nullptr
100 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
101 ) {
102 InternalSwap(&from);
103 } else {
104 CopyFrom(from);
105 }
106 return *this;
107 }
108
109 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
110 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
111 }
112 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
113 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
114 }
115
116 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
117 return GetDescriptor();
118 }
119 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
120 return default_instance().GetMetadata().descriptor;
121 }
122 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
123 return default_instance().GetMetadata().reflection;
124 }
129 return reinterpret_cast<const Config_RateBytesPair*>(
131 }
132 static constexpr int kIndexInFileMessages =
133 0;
134
136 a.Swap(&b);
137 }
138 inline void Swap(Config_RateBytesPair* other) {
139 if (other == this) return;
140 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
141 if (GetOwningArena() != nullptr &&
142 GetOwningArena() == other->GetOwningArena()) {
143 #else // PROTOBUF_FORCE_COPY_IN_SWAP
144 if (GetOwningArena() == other->GetOwningArena()) {
145 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
146 InternalSwap(other);
147 } else {
148 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
149 }
150 }
152 if (other == this) return;
153 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
154 InternalSwap(other);
155 }
156
157 // implements Message ----------------------------------------------
158
159 Config_RateBytesPair* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
160 return CreateMaybeMessage<Config_RateBytesPair>(arena);
161 }
162 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
164 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
165 void MergeFrom( const Config_RateBytesPair& from) {
166 Config_RateBytesPair::MergeImpl(*this, from);
167 }
168 private:
169 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
170 public:
171 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
172 bool IsInitialized() const final;
173
174 size_t ByteSizeLong() const final;
175 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
177 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
178 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
179
180 private:
181 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
182 void SharedDtor();
183 void SetCachedSize(int size) const final;
184 void InternalSwap(Config_RateBytesPair* other);
185
186 private:
187 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
188 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
189 return "goby.acomms.udp_multicast.protobuf.Config.RateBytesPair";
190 }
191 protected:
192 explicit Config_RateBytesPair(::PROTOBUF_NAMESPACE_ID::Arena* arena,
193 bool is_message_owned = false);
194 public:
195
196 static const ClassData _class_data_;
197 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
198
199 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
200
201 // nested types ----------------------------------------------------
202
203 // accessors -------------------------------------------------------
204
205 enum : int {
208 };
209 // required int32 rate = 1;
210 bool has_rate() const;
211 private:
212 bool _internal_has_rate() const;
213 public:
214 void clear_rate();
215 int32_t rate() const;
216 void set_rate(int32_t value);
217 private:
218 int32_t _internal_rate() const;
219 void _internal_set_rate(int32_t value);
220 public:
221
222 // required int32 bytes = 2;
223 bool has_bytes() const;
224 private:
225 bool _internal_has_bytes() const;
226 public:
227 void clear_bytes();
228 int32_t bytes() const;
229 void set_bytes(int32_t value);
230 private:
231 int32_t _internal_bytes() const;
232 void _internal_set_bytes(int32_t value);
233 public:
234
235 // @@protoc_insertion_point(class_scope:goby.acomms.udp_multicast.protobuf.Config.RateBytesPair)
236 private:
237 class _Internal;
238
239 // helper for ByteSizeLong()
240 size_t RequiredFieldsByteSizeFallback() const;
241
242 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
243 typedef void InternalArenaConstructable_;
244 typedef void DestructorSkippable_;
245 struct Impl_ {
246 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
247 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
248 int32_t rate_;
249 int32_t bytes_;
250 };
251 union { Impl_ _impl_; };
252 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto;
253};
254// -------------------------------------------------------------------
255
256class Config final :
257 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.udp_multicast.protobuf.Config) */ {
258 public:
259 inline Config() : Config(nullptr) {}
260 ~Config() override;
261 explicit PROTOBUF_CONSTEXPR Config(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
262
263 Config(const Config& from);
264 Config(Config&& from) noexcept
265 : Config() {
266 *this = ::std::move(from);
267 }
268
269 inline Config& operator=(const Config& from) {
270 CopyFrom(from);
271 return *this;
272 }
273 inline Config& operator=(Config&& from) noexcept {
274 if (this == &from) return *this;
275 if (GetOwningArena() == from.GetOwningArena()
276 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
277 && GetOwningArena() != nullptr
278 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
279 ) {
280 InternalSwap(&from);
281 } else {
282 CopyFrom(from);
283 }
284 return *this;
285 }
286
287 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
288 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
289 }
290 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
291 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
292 }
293
294 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
295 return GetDescriptor();
296 }
297 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
298 return default_instance().GetMetadata().descriptor;
299 }
300 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
301 return default_instance().GetMetadata().reflection;
302 }
303 static const Config& default_instance() {
304 return *internal_default_instance();
305 }
306 static inline const Config* internal_default_instance() {
307 return reinterpret_cast<const Config*>(
308 &_Config_default_instance_);
309 }
310 static constexpr int kIndexInFileMessages =
311 1;
312
313 friend void swap(Config& a, Config& b) {
314 a.Swap(&b);
315 }
316 inline void Swap(Config* other) {
317 if (other == this) return;
318 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
319 if (GetOwningArena() != nullptr &&
320 GetOwningArena() == other->GetOwningArena()) {
321 #else // PROTOBUF_FORCE_COPY_IN_SWAP
322 if (GetOwningArena() == other->GetOwningArena()) {
323 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
324 InternalSwap(other);
325 } else {
326 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
327 }
328 }
329 void UnsafeArenaSwap(Config* other) {
330 if (other == this) return;
331 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
332 InternalSwap(other);
333 }
334
335 // implements Message ----------------------------------------------
336
337 Config* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
338 return CreateMaybeMessage<Config>(arena);
339 }
340 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
341 void CopyFrom(const Config& from);
342 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
343 void MergeFrom( const Config& from) {
344 Config::MergeImpl(*this, from);
345 }
346 private:
347 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
348 public:
349 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
350 bool IsInitialized() const final;
351
352 size_t ByteSizeLong() const final;
353 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
354 uint8_t* _InternalSerialize(
355 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
356 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
357
358 private:
359 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
360 void SharedDtor();
361 void SetCachedSize(int size) const final;
362 void InternalSwap(Config* other);
363
364 private:
365 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
366 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
367 return "goby.acomms.udp_multicast.protobuf.Config";
368 }
369 protected:
370 explicit Config(::PROTOBUF_NAMESPACE_ID::Arena* arena,
371 bool is_message_owned = false);
372 public:
373
374 static const ClassData _class_data_;
375 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
376
377 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
378
379 // nested types ----------------------------------------------------
380
382
383 // accessors -------------------------------------------------------
384
385 enum : int {
386 kRateToBytesFieldNumber = 5,
387 kListenAddressFieldNumber = 1,
388 kMulticastAddressFieldNumber = 2,
389 kMulticastPortFieldNumber = 3,
390 kMaxFrameSizeFieldNumber = 4,
391 };
392 // repeated .goby.acomms.udp_multicast.protobuf.Config.RateBytesPair rate_to_bytes = 5 [(.goby.field) = {
393 int rate_to_bytes_size() const;
394 private:
395 int _internal_rate_to_bytes_size() const;
396 public:
397 void clear_rate_to_bytes();
399 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair >*
400 mutable_rate_to_bytes();
401 private:
402 const ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair& _internal_rate_to_bytes(int index) const;
404 public:
405 const ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair& rate_to_bytes(int index) const;
407 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair >&
408 rate_to_bytes() const;
409
410 // optional string listen_address = 1 [default = "0.0.0.0"];
411 bool has_listen_address() const;
412 private:
413 bool _internal_has_listen_address() const;
414 public:
415 void clear_listen_address();
416 const std::string& listen_address() const;
417 template <typename ArgT0 = const std::string&, typename... ArgT>
418 void set_listen_address(ArgT0&& arg0, ArgT... args);
419 std::string* mutable_listen_address();
420 PROTOBUF_NODISCARD std::string* release_listen_address();
421 void set_allocated_listen_address(std::string* listen_address);
422 private:
423 const std::string& _internal_listen_address() const;
424 inline PROTOBUF_ALWAYS_INLINE void _internal_set_listen_address(const std::string& value);
425 std::string* _internal_mutable_listen_address();
426 public:
427
428 // optional string multicast_address = 2 [default = "239.142.0.1"];
429 bool has_multicast_address() const;
430 private:
431 bool _internal_has_multicast_address() const;
432 public:
433 void clear_multicast_address();
434 const std::string& multicast_address() const;
435 template <typename ArgT0 = const std::string&, typename... ArgT>
436 void set_multicast_address(ArgT0&& arg0, ArgT... args);
437 std::string* mutable_multicast_address();
438 PROTOBUF_NODISCARD std::string* release_multicast_address();
439 void set_allocated_multicast_address(std::string* multicast_address);
440 private:
441 const std::string& _internal_multicast_address() const;
442 inline PROTOBUF_ALWAYS_INLINE void _internal_set_multicast_address(const std::string& value);
443 std::string* _internal_mutable_multicast_address();
444 public:
445
446 // optional uint32 multicast_port = 3 [default = 50021];
447 bool has_multicast_port() const;
448 private:
449 bool _internal_has_multicast_port() const;
450 public:
451 void clear_multicast_port();
452 uint32_t multicast_port() const;
453 void set_multicast_port(uint32_t value);
454 private:
455 uint32_t _internal_multicast_port() const;
456 void _internal_set_multicast_port(uint32_t value);
457 public:
458
459 // optional int32 max_frame_size = 4 [default = 1400];
460 bool has_max_frame_size() const;
461 private:
462 bool _internal_has_max_frame_size() const;
463 public:
464 void clear_max_frame_size();
465 int32_t max_frame_size() const;
466 void set_max_frame_size(int32_t value);
467 private:
468 int32_t _internal_max_frame_size() const;
469 void _internal_set_max_frame_size(int32_t value);
470 public:
471
472 // @@protoc_insertion_point(class_scope:goby.acomms.udp_multicast.protobuf.Config)
473 private:
474 class _Internal;
475
476 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
477 typedef void InternalArenaConstructable_;
478 typedef void DestructorSkippable_;
479 struct Impl_ {
480 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
481 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
482 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair > rate_to_bytes_;
483 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_listen_address_;
484 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr listen_address_;
485 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_multicast_address_;
486 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr multicast_address_;
487 uint32_t multicast_port_;
488 int32_t max_frame_size_;
489 };
490 union { Impl_ _impl_; };
491 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto;
492};
493// ===================================================================
494
495static const int kConfigFieldNumber = 1342;
496extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
497 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::udp_multicast::protobuf::Config >, 11, false >
498 config;
499
500// ===================================================================
501
502#ifdef __GNUC__
503 #pragma GCC diagnostic push
504 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
505#endif // __GNUC__
506// Config_RateBytesPair
507
508// required int32 rate = 1;
509inline bool Config_RateBytesPair::_internal_has_rate() const {
510 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
511 return value;
512}
513inline bool Config_RateBytesPair::has_rate() const {
514 return _internal_has_rate();
515}
516inline void Config_RateBytesPair::clear_rate() {
517 _impl_.rate_ = 0;
518 _impl_._has_bits_[0] &= ~0x00000001u;
519}
520inline int32_t Config_RateBytesPair::_internal_rate() const {
521 return _impl_.rate_;
522}
523inline int32_t Config_RateBytesPair::rate() const {
524 // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.RateBytesPair.rate)
525 return _internal_rate();
526}
527inline void Config_RateBytesPair::_internal_set_rate(int32_t value) {
528 _impl_._has_bits_[0] |= 0x00000001u;
529 _impl_.rate_ = value;
530}
531inline void Config_RateBytesPair::set_rate(int32_t value) {
532 _internal_set_rate(value);
533 // @@protoc_insertion_point(field_set:goby.acomms.udp_multicast.protobuf.Config.RateBytesPair.rate)
534}
535
536// required int32 bytes = 2;
537inline bool Config_RateBytesPair::_internal_has_bytes() const {
538 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
539 return value;
540}
541inline bool Config_RateBytesPair::has_bytes() const {
542 return _internal_has_bytes();
543}
544inline void Config_RateBytesPair::clear_bytes() {
545 _impl_.bytes_ = 0;
546 _impl_._has_bits_[0] &= ~0x00000002u;
547}
548inline int32_t Config_RateBytesPair::_internal_bytes() const {
549 return _impl_.bytes_;
550}
551inline int32_t Config_RateBytesPair::bytes() const {
552 // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.RateBytesPair.bytes)
553 return _internal_bytes();
554}
555inline void Config_RateBytesPair::_internal_set_bytes(int32_t value) {
556 _impl_._has_bits_[0] |= 0x00000002u;
557 _impl_.bytes_ = value;
558}
559inline void Config_RateBytesPair::set_bytes(int32_t value) {
560 _internal_set_bytes(value);
561 // @@protoc_insertion_point(field_set:goby.acomms.udp_multicast.protobuf.Config.RateBytesPair.bytes)
562}
563
564// -------------------------------------------------------------------
565
566// Config
567
568// optional string listen_address = 1 [default = "0.0.0.0"];
569inline bool Config::_internal_has_listen_address() const {
570 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
571 return value;
572}
573inline bool Config::has_listen_address() const {
574 return _internal_has_listen_address();
575}
576inline void Config::clear_listen_address() {
577 _impl_.listen_address_.ClearToDefault(::goby::acomms::udp_multicast::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_listen_address_, GetArenaForAllocation());
578 _impl_._has_bits_[0] &= ~0x00000001u;
579}
580inline const std::string& Config::listen_address() const {
581 // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.listen_address)
582 if (_impl_.listen_address_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_listen_address_.get();
583 return _internal_listen_address();
584}
585template <typename ArgT0, typename... ArgT>
586inline PROTOBUF_ALWAYS_INLINE
587void Config::set_listen_address(ArgT0&& arg0, ArgT... args) {
588 _impl_._has_bits_[0] |= 0x00000001u;
589 _impl_.listen_address_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
590 // @@protoc_insertion_point(field_set:goby.acomms.udp_multicast.protobuf.Config.listen_address)
591}
592inline std::string* Config::mutable_listen_address() {
593 std::string* _s = _internal_mutable_listen_address();
594 // @@protoc_insertion_point(field_mutable:goby.acomms.udp_multicast.protobuf.Config.listen_address)
595 return _s;
596}
597inline const std::string& Config::_internal_listen_address() const {
598 return _impl_.listen_address_.Get();
599}
600inline void Config::_internal_set_listen_address(const std::string& value) {
601 _impl_._has_bits_[0] |= 0x00000001u;
602 _impl_.listen_address_.Set(value, GetArenaForAllocation());
603}
604inline std::string* Config::_internal_mutable_listen_address() {
605 _impl_._has_bits_[0] |= 0x00000001u;
606 return _impl_.listen_address_.Mutable(::goby::acomms::udp_multicast::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_listen_address_, GetArenaForAllocation());
607}
608inline std::string* Config::release_listen_address() {
609 // @@protoc_insertion_point(field_release:goby.acomms.udp_multicast.protobuf.Config.listen_address)
610 if (!_internal_has_listen_address()) {
611 return nullptr;
612 }
613 _impl_._has_bits_[0] &= ~0x00000001u;
614 auto* p = _impl_.listen_address_.Release();
615 return p;
616}
617inline void Config::set_allocated_listen_address(std::string* listen_address) {
618 if (listen_address != nullptr) {
619 _impl_._has_bits_[0] |= 0x00000001u;
620 } else {
621 _impl_._has_bits_[0] &= ~0x00000001u;
622 }
623 _impl_.listen_address_.SetAllocated(listen_address, GetArenaForAllocation());
624 // @@protoc_insertion_point(field_set_allocated:goby.acomms.udp_multicast.protobuf.Config.listen_address)
625}
626
627// optional string multicast_address = 2 [default = "239.142.0.1"];
628inline bool Config::_internal_has_multicast_address() const {
629 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
630 return value;
631}
632inline bool Config::has_multicast_address() const {
633 return _internal_has_multicast_address();
634}
635inline void Config::clear_multicast_address() {
636 _impl_.multicast_address_.ClearToDefault(::goby::acomms::udp_multicast::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_multicast_address_, GetArenaForAllocation());
637 _impl_._has_bits_[0] &= ~0x00000002u;
638}
639inline const std::string& Config::multicast_address() const {
640 // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
641 if (_impl_.multicast_address_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_multicast_address_.get();
642 return _internal_multicast_address();
643}
644template <typename ArgT0, typename... ArgT>
645inline PROTOBUF_ALWAYS_INLINE
646void Config::set_multicast_address(ArgT0&& arg0, ArgT... args) {
647 _impl_._has_bits_[0] |= 0x00000002u;
648 _impl_.multicast_address_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
649 // @@protoc_insertion_point(field_set:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
650}
651inline std::string* Config::mutable_multicast_address() {
652 std::string* _s = _internal_mutable_multicast_address();
653 // @@protoc_insertion_point(field_mutable:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
654 return _s;
655}
656inline const std::string& Config::_internal_multicast_address() const {
657 return _impl_.multicast_address_.Get();
658}
659inline void Config::_internal_set_multicast_address(const std::string& value) {
660 _impl_._has_bits_[0] |= 0x00000002u;
661 _impl_.multicast_address_.Set(value, GetArenaForAllocation());
662}
663inline std::string* Config::_internal_mutable_multicast_address() {
664 _impl_._has_bits_[0] |= 0x00000002u;
665 return _impl_.multicast_address_.Mutable(::goby::acomms::udp_multicast::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_multicast_address_, GetArenaForAllocation());
666}
667inline std::string* Config::release_multicast_address() {
668 // @@protoc_insertion_point(field_release:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
669 if (!_internal_has_multicast_address()) {
670 return nullptr;
671 }
672 _impl_._has_bits_[0] &= ~0x00000002u;
673 auto* p = _impl_.multicast_address_.Release();
674 return p;
675}
676inline void Config::set_allocated_multicast_address(std::string* multicast_address) {
677 if (multicast_address != nullptr) {
678 _impl_._has_bits_[0] |= 0x00000002u;
679 } else {
680 _impl_._has_bits_[0] &= ~0x00000002u;
681 }
682 _impl_.multicast_address_.SetAllocated(multicast_address, GetArenaForAllocation());
683 // @@protoc_insertion_point(field_set_allocated:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
684}
685
686// optional uint32 multicast_port = 3 [default = 50021];
687inline bool Config::_internal_has_multicast_port() const {
688 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
689 return value;
690}
691inline bool Config::has_multicast_port() const {
692 return _internal_has_multicast_port();
693}
694inline void Config::clear_multicast_port() {
695 _impl_.multicast_port_ = 50021u;
696 _impl_._has_bits_[0] &= ~0x00000004u;
697}
698inline uint32_t Config::_internal_multicast_port() const {
699 return _impl_.multicast_port_;
700}
701inline uint32_t Config::multicast_port() const {
702 // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.multicast_port)
703 return _internal_multicast_port();
704}
705inline void Config::_internal_set_multicast_port(uint32_t value) {
706 _impl_._has_bits_[0] |= 0x00000004u;
707 _impl_.multicast_port_ = value;
708}
709inline void Config::set_multicast_port(uint32_t value) {
710 _internal_set_multicast_port(value);
711 // @@protoc_insertion_point(field_set:goby.acomms.udp_multicast.protobuf.Config.multicast_port)
712}
713
714// optional int32 max_frame_size = 4 [default = 1400];
715inline bool Config::_internal_has_max_frame_size() const {
716 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
717 return value;
718}
719inline bool Config::has_max_frame_size() const {
720 return _internal_has_max_frame_size();
721}
722inline void Config::clear_max_frame_size() {
723 _impl_.max_frame_size_ = 1400;
724 _impl_._has_bits_[0] &= ~0x00000008u;
725}
726inline int32_t Config::_internal_max_frame_size() const {
727 return _impl_.max_frame_size_;
728}
729inline int32_t Config::max_frame_size() const {
730 // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.max_frame_size)
731 return _internal_max_frame_size();
732}
733inline void Config::_internal_set_max_frame_size(int32_t value) {
734 _impl_._has_bits_[0] |= 0x00000008u;
735 _impl_.max_frame_size_ = value;
736}
737inline void Config::set_max_frame_size(int32_t value) {
738 _internal_set_max_frame_size(value);
739 // @@protoc_insertion_point(field_set:goby.acomms.udp_multicast.protobuf.Config.max_frame_size)
740}
741
742// repeated .goby.acomms.udp_multicast.protobuf.Config.RateBytesPair rate_to_bytes = 5 [(.goby.field) = {
743inline int Config::_internal_rate_to_bytes_size() const {
744 return _impl_.rate_to_bytes_.size();
745}
746inline int Config::rate_to_bytes_size() const {
747 return _internal_rate_to_bytes_size();
748}
749inline void Config::clear_rate_to_bytes() {
750 _impl_.rate_to_bytes_.Clear();
751}
752inline ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair* Config::mutable_rate_to_bytes(int index) {
753 // @@protoc_insertion_point(field_mutable:goby.acomms.udp_multicast.protobuf.Config.rate_to_bytes)
754 return _impl_.rate_to_bytes_.Mutable(index);
755}
756inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair >*
757Config::mutable_rate_to_bytes() {
758 // @@protoc_insertion_point(field_mutable_list:goby.acomms.udp_multicast.protobuf.Config.rate_to_bytes)
759 return &_impl_.rate_to_bytes_;
760}
761inline const ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair& Config::_internal_rate_to_bytes(int index) const {
762 return _impl_.rate_to_bytes_.Get(index);
763}
764inline const ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair& Config::rate_to_bytes(int index) const {
765 // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.rate_to_bytes)
766 return _internal_rate_to_bytes(index);
767}
768inline ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair* Config::_internal_add_rate_to_bytes() {
769 return _impl_.rate_to_bytes_.Add();
770}
771inline ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair* Config::add_rate_to_bytes() {
772 ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair* _add = _internal_add_rate_to_bytes();
773 // @@protoc_insertion_point(field_add:goby.acomms.udp_multicast.protobuf.Config.rate_to_bytes)
774 return _add;
775}
776inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair >&
777Config::rate_to_bytes() const {
778 // @@protoc_insertion_point(field_list:goby.acomms.udp_multicast.protobuf.Config.rate_to_bytes)
779 return _impl_.rate_to_bytes_;
780}
781
782#ifdef __GNUC__
783 #pragma GCC diagnostic pop
784#endif // __GNUC__
785// -------------------------------------------------------------------
786
787
788// @@protoc_insertion_point(namespace_scope)
789
790} // namespace protobuf
791} // namespace udp_multicast
792} // namespace acomms
793} // namespace goby
794
795// @@protoc_insertion_point(global_scope)
796
797#include <google/protobuf/port_undef.inc>
798#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto
friend void swap(Config_RateBytesPair &a, Config_RateBytesPair &b)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PROTOBUF_CONSTEXPR Config_RateBytesPair(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Config_RateBytesPair * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void CopyFrom(const Config_RateBytesPair &from)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
Config_RateBytesPair(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Config_RateBytesPair & operator=(Config_RateBytesPair &&from) noexcept
Config_RateBytesPair(const Config_RateBytesPair &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Config_RateBytesPair & operator=(const Config_RateBytesPair &from)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_multicast_address(ArgT0 &&arg0, ArgT... args)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Config * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
PROTOBUF_CONSTEXPR Config(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Config(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void set_listen_address(ArgT0 &&arg0, ArgT... args)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
ConfigDefaultTypeInternal _Config_default_instance_
Config_RateBytesPairDefaultTypeInternal _Config_RateBytesPair_default_instance_
The global namespace for the Goby project.
#define ByteSizeLong
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto