4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_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.
22 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
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>
40 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto
45 static const ::google::protobuf::internal::ParseTableField
entries[];
46 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
47 static const ::google::protobuf::internal::ParseTable
schema[2];
56 namespace udp_multicast {
59 class ConfigDefaultTypeInternal;
62 class Config_RateBytesPairDefaultTypeInternal;
76 namespace udp_multicast {
95 *
this = ::std::move(from);
99 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
100 if (
this != &from) InternalSwap(&from);
108 return _internal_metadata_.unknown_fields();
111 return _internal_metadata_.mutable_unknown_fields();
114 static const ::google::protobuf::Descriptor*
descriptor();
133 return CreateMaybeMessage<Config_RateBytesPair>(NULL);
137 return CreateMaybeMessage<Config_RateBytesPair>(arena);
139 void CopyFrom(const ::google::protobuf::Message& from)
final;
140 void MergeFrom(const ::google::protobuf::Message& from)
final;
148 ::
google::protobuf::io::CodedInputStream* input) final;
150 ::
google::protobuf::io::CodedOutputStream* output) const final;
152 bool deterministic, ::
google::protobuf::uint8* target) const final;
158 void SetCachedSize(
int size)
const final;
161 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
164 inline void* MaybeArenaPtr()
const {
192 void clear_has_rate();
193 void set_has_bytes();
194 void clear_has_bytes();
197 size_t RequiredFieldsByteSizeFallback() const;
199 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
200 ::
google::protobuf::internal::HasBits<1> _has_bits_;
201 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
222 *
this = ::std::move(from);
225 inline Config&
operator=(Config&& from) noexcept {
226 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
227 if (
this != &from) InternalSwap(&from);
235 return _internal_metadata_.unknown_fields();
238 return _internal_metadata_.mutable_unknown_fields();
241 static const ::google::protobuf::Descriptor*
descriptor();
246 return reinterpret_cast<const Config*
>(
260 return CreateMaybeMessage<Config>(NULL);
264 return CreateMaybeMessage<Config>(arena);
266 void CopyFrom(const ::google::protobuf::Message& from)
final;
267 void MergeFrom(const ::google::protobuf::Message& from)
final;
275 ::
google::protobuf::io::CodedInputStream* input) final;
277 ::
google::protobuf::io::CodedOutputStream* output) const final;
279 bool deterministic, ::
google::protobuf::uint8* target) const final;
285 void SetCachedSize(
int size)
const final;
286 void InternalSwap(
Config* other);
288 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
291 inline void* MaybeArenaPtr()
const {
305 int rate_to_bytes_size() const;
306 void clear_rate_to_bytes();
307 static const
int kRateToBytesFieldNumber = 5;
310 mutable_rate_to_bytes();
314 rate_to_bytes() const;
317 bool has_listen_address() const;
318 void clear_listen_address();
319 static const
int kListenAddressFieldNumber = 1;
320 const ::std::
string& listen_address() const;
321 void set_listen_address(const ::std::
string& value);
323 void set_listen_address(::std::string&& value);
325 void set_listen_address(
const char* value);
326 void set_listen_address(
const char* value,
size_t size);
327 ::std::string* mutable_listen_address();
328 ::std::string* release_listen_address();
329 void set_allocated_listen_address(::std::string* listen_address);
332 bool has_multicast_address()
const;
333 void clear_multicast_address();
334 static const int kMulticastAddressFieldNumber = 2;
335 const ::std::string& multicast_address()
const;
336 void set_multicast_address(const ::std::string& value);
338 void set_multicast_address(::std::string&& value);
340 void set_multicast_address(
const char* value);
341 void set_multicast_address(
const char* value,
size_t size);
342 ::std::string* mutable_multicast_address();
343 ::std::string* release_multicast_address();
344 void set_allocated_multicast_address(::std::string* multicast_address);
347 bool has_multicast_port()
const;
348 void clear_multicast_port();
349 static const int kMulticastPortFieldNumber = 3;
354 bool has_max_frame_size()
const;
355 void clear_max_frame_size();
356 static const int kMaxFrameSizeFieldNumber = 4;
362 void set_has_listen_address();
363 void clear_has_listen_address();
364 void set_has_multicast_address();
365 void clear_has_multicast_address();
366 void set_has_multicast_port();
367 void clear_has_multicast_port();
368 void set_has_max_frame_size();
369 void clear_has_max_frame_size();
371 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
372 ::google::protobuf::internal::HasBits<1> _has_bits_;
373 mutable ::google::protobuf::internal::CachedSize _cached_size_;
378 ::google::protobuf::internal::ArenaStringPtr listen_address_;
382 ::google::protobuf::internal::ArenaStringPtr multicast_address_;
385 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto::TableStruct;
391 ::google::protobuf::internal::MessageTypeTraits< ::goby::acomms::udp_multicast::protobuf::Config >, 11,
false >
397 #pragma GCC diagnostic push
398 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
404 return (_has_bits_[0] & 0x00000001u) != 0;
406 inline void Config_RateBytesPair::set_has_rate() {
407 _has_bits_[0] |= 0x00000001u;
409 inline void Config_RateBytesPair::clear_has_rate() {
410 _has_bits_[0] &= ~0x00000001u;
428 return (_has_bits_[0] & 0x00000002u) != 0;
430 inline void Config_RateBytesPair::set_has_bytes() {
431 _has_bits_[0] |= 0x00000002u;
433 inline void Config_RateBytesPair::clear_has_bytes() {
434 _has_bits_[0] &= ~0x00000002u;
456 return (_has_bits_[0] & 0x00000001u) != 0;
458 inline void Config::set_has_listen_address() {
459 _has_bits_[0] |= 0x00000001u;
461 inline void Config::clear_has_listen_address() {
462 _has_bits_[0] &= ~0x00000001u;
466 clear_has_listen_address();
470 return listen_address_.GetNoArena();
473 set_has_listen_address();
479 set_has_listen_address();
480 listen_address_.SetNoArena(
486 GOOGLE_DCHECK(value != NULL);
487 set_has_listen_address();
492 set_has_listen_address();
494 ::std::string(
reinterpret_cast<const char*
>(value), size));
498 set_has_listen_address();
504 if (!has_listen_address()) {
507 clear_has_listen_address();
511 if (listen_address != NULL) {
512 set_has_listen_address();
514 clear_has_listen_address();
522 return (_has_bits_[0] & 0x00000002u) != 0;
524 inline void Config::set_has_multicast_address() {
525 _has_bits_[0] |= 0x00000002u;
527 inline void Config::clear_has_multicast_address() {
528 _has_bits_[0] &= ~0x00000002u;
532 clear_has_multicast_address();
536 return multicast_address_.GetNoArena();
539 set_has_multicast_address();
545 set_has_multicast_address();
546 multicast_address_.SetNoArena(
552 GOOGLE_DCHECK(value != NULL);
553 set_has_multicast_address();
558 set_has_multicast_address();
560 ::std::string(
reinterpret_cast<const char*
>(value), size));
564 set_has_multicast_address();
570 if (!has_multicast_address()) {
573 clear_has_multicast_address();
577 if (multicast_address != NULL) {
578 set_has_multicast_address();
580 clear_has_multicast_address();
588 return (_has_bits_[0] & 0x00000004u) != 0;
590 inline void Config::set_has_multicast_port() {
591 _has_bits_[0] |= 0x00000004u;
593 inline void Config::clear_has_multicast_port() {
594 _has_bits_[0] &= ~0x00000004u;
597 multicast_port_ = 50021u;
598 clear_has_multicast_port();
602 return multicast_port_;
605 set_has_multicast_port();
606 multicast_port_ = value;
612 return (_has_bits_[0] & 0x00000008u) != 0;
614 inline void Config::set_has_max_frame_size() {
615 _has_bits_[0] |= 0x00000008u;
617 inline void Config::clear_has_max_frame_size() {
618 _has_bits_[0] &= ~0x00000008u;
621 max_frame_size_ = 1400;
622 clear_has_max_frame_size();
626 return max_frame_size_;
629 set_has_max_frame_size();
630 max_frame_size_ = value;
636 return rate_to_bytes_.size();
639 rate_to_bytes_.Clear();
643 return rate_to_bytes_.Mutable(index);
645 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair >*
648 return &rate_to_bytes_;
650 inline const ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair&
Config::rate_to_bytes(
int index)
const {
652 return rate_to_bytes_.Get(index);
656 return rate_to_bytes_.Add();
658 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair >&
661 return rate_to_bytes_;
665 #pragma GCC diagnostic pop
679 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto