4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_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>
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>
40 #include <boost/units/systems/si.hpp>
42 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto
47 static const ::google::protobuf::internal::ParseTableField
entries[];
48 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
49 static const ::google::protobuf::internal::ParseTable
schema[2];
57 namespace middleware {
59 class UDPOneToManyConfig;
60 class UDPOneToManyConfigDefaultTypeInternal;
62 class UDPPointToPointConfig;
63 class UDPPointToPointConfigDefaultTypeInternal;
75 namespace middleware {
94 *
this = ::std::move(from);
98 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
99 if (
this != &from) InternalSwap(&from);
107 return _internal_metadata_.unknown_fields();
110 return _internal_metadata_.mutable_unknown_fields();
113 static const ::google::protobuf::Descriptor*
descriptor();
132 return CreateMaybeMessage<UDPOneToManyConfig>(NULL);
136 return CreateMaybeMessage<UDPOneToManyConfig>(arena);
138 void CopyFrom(const ::google::protobuf::Message& from)
final;
139 void MergeFrom(const ::google::protobuf::Message& from)
final;
147 ::
google::protobuf::io::CodedInputStream* input) final;
149 ::
google::protobuf::io::CodedOutputStream* output) const final;
151 bool deterministic, ::
google::protobuf::uint8* target) const final;
157 void SetCachedSize(
int size)
const final;
160 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
163 inline void* MaybeArenaPtr()
const {
204 void set_has_bind_port();
205 void clear_has_bind_port();
206 void set_has_set_reuseaddr();
207 void clear_has_set_reuseaddr();
208 void set_has_set_broadcast();
209 void clear_has_set_broadcast();
211 void clear_has_ipv6();
213 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
214 ::
google::protobuf::internal::HasBits<1> _has_bits_;
215 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
238 *
this = ::std::move(from);
241 inline UDPPointToPointConfig&
operator=(UDPPointToPointConfig&& from) noexcept {
242 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
243 if (
this != &from) InternalSwap(&from);
251 return _internal_metadata_.unknown_fields();
254 return _internal_metadata_.mutable_unknown_fields();
257 static const ::google::protobuf::Descriptor*
descriptor();
276 return CreateMaybeMessage<UDPPointToPointConfig>(NULL);
280 return CreateMaybeMessage<UDPPointToPointConfig>(arena);
282 void CopyFrom(const ::google::protobuf::Message& from)
final;
283 void MergeFrom(const ::google::protobuf::Message& from)
final;
291 ::
google::protobuf::io::CodedInputStream* input) final;
293 ::
google::protobuf::io::CodedOutputStream* output) const final;
295 bool deterministic, ::
google::protobuf::uint8* target) const final;
301 void SetCachedSize(
int size)
const final;
304 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
307 inline void* MaybeArenaPtr()
const {
319 bool has_remote_address() const;
320 void clear_remote_address();
321 static const
int kRemoteAddressFieldNumber = 5;
322 const ::std::
string& remote_address() const;
323 void set_remote_address(const ::std::
string& value);
325 void set_remote_address(::std::string&& value);
327 void set_remote_address(
const char* value);
328 void set_remote_address(
const char* value,
size_t size);
329 ::std::string* mutable_remote_address();
330 ::std::string* release_remote_address();
331 void set_allocated_remote_address(::std::string* remote_address);
341 bool has_remote_port()
const;
342 void clear_remote_port();
343 static const int kRemotePortFieldNumber = 6;
370 void set_has_bind_port();
371 void clear_has_bind_port();
372 void set_has_remote_address();
373 void clear_has_remote_address();
374 void set_has_remote_port();
375 void clear_has_remote_port();
376 void set_has_set_reuseaddr();
377 void clear_has_set_reuseaddr();
378 void set_has_set_broadcast();
379 void clear_has_set_broadcast();
381 void clear_has_ipv6();
384 size_t RequiredFieldsByteSizeFallback()
const;
386 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
387 ::google::protobuf::internal::HasBits<1> _has_bits_;
388 mutable ::google::protobuf::internal::CachedSize _cached_size_;
389 ::google::protobuf::internal::ArenaStringPtr remote_address_;
395 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto::TableStruct;
403 #pragma GCC diagnostic push
404 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
410 return (_has_bits_[0] & 0x00000001u) != 0;
412 inline void UDPOneToManyConfig::set_has_bind_port() {
413 _has_bits_[0] |= 0x00000001u;
415 inline void UDPOneToManyConfig::clear_has_bind_port() {
416 _has_bits_[0] &= ~0x00000001u;
420 clear_has_bind_port();
434 return (_has_bits_[0] & 0x00000002u) != 0;
436 inline void UDPOneToManyConfig::set_has_set_reuseaddr() {
437 _has_bits_[0] |= 0x00000002u;
439 inline void UDPOneToManyConfig::clear_has_set_reuseaddr() {
440 _has_bits_[0] &= ~0x00000002u;
443 set_reuseaddr_ =
false;
444 clear_has_set_reuseaddr();
448 return set_reuseaddr_;
451 set_has_set_reuseaddr();
452 set_reuseaddr_ = value;
458 return (_has_bits_[0] & 0x00000004u) != 0;
460 inline void UDPOneToManyConfig::set_has_set_broadcast() {
461 _has_bits_[0] |= 0x00000004u;
463 inline void UDPOneToManyConfig::clear_has_set_broadcast() {
464 _has_bits_[0] &= ~0x00000004u;
467 set_broadcast_ =
false;
468 clear_has_set_broadcast();
472 return set_broadcast_;
475 set_has_set_broadcast();
476 set_broadcast_ = value;
482 return (_has_bits_[0] & 0x00000008u) != 0;
484 inline void UDPOneToManyConfig::set_has_ipv6() {
485 _has_bits_[0] |= 0x00000008u;
487 inline void UDPOneToManyConfig::clear_has_ipv6() {
488 _has_bits_[0] &= ~0x00000008u;
510 return (_has_bits_[0] & 0x00000002u) != 0;
512 inline void UDPPointToPointConfig::set_has_bind_port() {
513 _has_bits_[0] |= 0x00000002u;
515 inline void UDPPointToPointConfig::clear_has_bind_port() {
516 _has_bits_[0] &= ~0x00000002u;
520 clear_has_bind_port();
534 return (_has_bits_[0] & 0x00000001u) != 0;
536 inline void UDPPointToPointConfig::set_has_remote_address() {
537 _has_bits_[0] |= 0x00000001u;
539 inline void UDPPointToPointConfig::clear_has_remote_address() {
540 _has_bits_[0] &= ~0x00000001u;
544 clear_has_remote_address();
548 return remote_address_.GetNoArena();
551 set_has_remote_address();
557 set_has_remote_address();
558 remote_address_.SetNoArena(
564 GOOGLE_DCHECK(value != NULL);
565 set_has_remote_address();
570 set_has_remote_address();
572 ::std::string(
reinterpret_cast<const char*
>(value), size));
576 set_has_remote_address();
582 if (!has_remote_address()) {
585 clear_has_remote_address();
589 if (remote_address != NULL) {
590 set_has_remote_address();
592 clear_has_remote_address();
600 return (_has_bits_[0] & 0x00000004u) != 0;
602 inline void UDPPointToPointConfig::set_has_remote_port() {
603 _has_bits_[0] |= 0x00000004u;
605 inline void UDPPointToPointConfig::clear_has_remote_port() {
606 _has_bits_[0] &= ~0x00000004u;
610 clear_has_remote_port();
617 set_has_remote_port();
618 remote_port_ = value;
624 return (_has_bits_[0] & 0x00000008u) != 0;
626 inline void UDPPointToPointConfig::set_has_set_reuseaddr() {
627 _has_bits_[0] |= 0x00000008u;
629 inline void UDPPointToPointConfig::clear_has_set_reuseaddr() {
630 _has_bits_[0] &= ~0x00000008u;
633 set_reuseaddr_ =
false;
634 clear_has_set_reuseaddr();
638 return set_reuseaddr_;
641 set_has_set_reuseaddr();
642 set_reuseaddr_ = value;
648 return (_has_bits_[0] & 0x00000010u) != 0;
650 inline void UDPPointToPointConfig::set_has_set_broadcast() {
651 _has_bits_[0] |= 0x00000010u;
653 inline void UDPPointToPointConfig::clear_has_set_broadcast() {
654 _has_bits_[0] &= ~0x00000010u;
657 set_broadcast_ =
false;
658 clear_has_set_broadcast();
662 return set_broadcast_;
665 set_has_set_broadcast();
666 set_broadcast_ = value;
672 return (_has_bits_[0] & 0x00000020u) != 0;
674 inline void UDPPointToPointConfig::set_has_ipv6() {
675 _has_bits_[0] |= 0x00000020u;
677 inline void UDPPointToPointConfig::clear_has_ipv6() {
678 _has_bits_[0] &= ~0x00000020u;
695 #pragma GCC diagnostic pop
708 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto