4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ftcp_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_2ftcp_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 TCPClientConfig;
60 class TCPClientConfigDefaultTypeInternal;
62 class TCPServerConfig;
63 class TCPServerConfigDefaultTypeInternal;
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<TCPServerConfig>(NULL);
136 return CreateMaybeMessage<TCPServerConfig>(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 {
212 void set_has_bind_port();
213 void clear_has_bind_port();
214 void set_has_end_of_line();
215 void clear_has_end_of_line();
216 void set_has_set_reuseaddr();
217 void clear_has_set_reuseaddr();
219 void clear_has_ipv6();
221 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
222 ::google::protobuf::internal::HasBits<1> _has_bits_;
223 mutable ::google::protobuf::internal::CachedSize _cached_size_;
227 ::google::protobuf::internal::ArenaStringPtr end_of_line_;
231 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto::TableStruct;
249 *
this = ::std::move(from);
253 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
254 if (
this != &from) InternalSwap(&from);
262 return _internal_metadata_.unknown_fields();
265 return _internal_metadata_.mutable_unknown_fields();
268 static const ::google::protobuf::Descriptor*
descriptor();
287 return CreateMaybeMessage<TCPClientConfig>(NULL);
291 return CreateMaybeMessage<TCPClientConfig>(arena);
293 void CopyFrom(const ::google::protobuf::Message& from)
final;
294 void MergeFrom(const ::google::protobuf::Message& from)
final;
302 ::
google::protobuf::io::CodedInputStream* input) final;
304 ::
google::protobuf::io::CodedOutputStream* output) const final;
306 bool deterministic, ::
google::protobuf::uint8* target) const final;
312 void SetCachedSize(
int size)
const final;
315 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
318 inline void* MaybeArenaPtr()
const {
375 void set_has_end_of_line();
376 void clear_has_end_of_line();
377 void set_has_remote_address();
378 void clear_has_remote_address();
379 void set_has_remote_port();
380 void clear_has_remote_port();
382 void clear_has_ipv6();
385 size_t RequiredFieldsByteSizeFallback()
const;
387 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
388 ::google::protobuf::internal::HasBits<1> _has_bits_;
389 mutable ::google::protobuf::internal::CachedSize _cached_size_;
393 ::google::protobuf::internal::ArenaStringPtr end_of_line_;
394 ::google::protobuf::internal::ArenaStringPtr remote_address_;
397 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto::TableStruct;
405 #pragma GCC diagnostic push
406 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
412 return (_has_bits_[0] & 0x00000002u) != 0;
414 inline void TCPServerConfig::set_has_bind_port() {
415 _has_bits_[0] |= 0x00000002u;
417 inline void TCPServerConfig::clear_has_bind_port() {
418 _has_bits_[0] &= ~0x00000002u;
422 clear_has_bind_port();
436 return (_has_bits_[0] & 0x00000001u) != 0;
438 inline void TCPServerConfig::set_has_end_of_line() {
439 _has_bits_[0] |= 0x00000001u;
441 inline void TCPServerConfig::clear_has_end_of_line() {
442 _has_bits_[0] &= ~0x00000001u;
446 clear_has_end_of_line();
450 return end_of_line_.GetNoArena();
453 set_has_end_of_line();
459 set_has_end_of_line();
460 end_of_line_.SetNoArena(
466 GOOGLE_DCHECK(value != NULL);
467 set_has_end_of_line();
472 set_has_end_of_line();
474 ::std::string(
reinterpret_cast<const char*
>(value), size));
478 set_has_end_of_line();
487 clear_has_end_of_line();
492 set_has_end_of_line();
494 clear_has_end_of_line();
502 return (_has_bits_[0] & 0x00000004u) != 0;
504 inline void TCPServerConfig::set_has_set_reuseaddr() {
505 _has_bits_[0] |= 0x00000004u;
507 inline void TCPServerConfig::clear_has_set_reuseaddr() {
508 _has_bits_[0] &= ~0x00000004u;
511 set_reuseaddr_ =
false;
512 clear_has_set_reuseaddr();
516 return set_reuseaddr_;
519 set_has_set_reuseaddr();
520 set_reuseaddr_ = value;
526 return (_has_bits_[0] & 0x00000008u) != 0;
528 inline void TCPServerConfig::set_has_ipv6() {
529 _has_bits_[0] |= 0x00000008u;
531 inline void TCPServerConfig::clear_has_ipv6() {
532 _has_bits_[0] &= ~0x00000008u;
554 return (_has_bits_[0] & 0x00000001u) != 0;
556 inline void TCPClientConfig::set_has_end_of_line() {
557 _has_bits_[0] |= 0x00000001u;
559 inline void TCPClientConfig::clear_has_end_of_line() {
560 _has_bits_[0] &= ~0x00000001u;
564 clear_has_end_of_line();
568 return end_of_line_.GetNoArena();
571 set_has_end_of_line();
577 set_has_end_of_line();
578 end_of_line_.SetNoArena(
584 GOOGLE_DCHECK(value != NULL);
585 set_has_end_of_line();
590 set_has_end_of_line();
592 ::std::string(
reinterpret_cast<const char*
>(value), size));
596 set_has_end_of_line();
605 clear_has_end_of_line();
610 set_has_end_of_line();
612 clear_has_end_of_line();
620 return (_has_bits_[0] & 0x00000002u) != 0;
622 inline void TCPClientConfig::set_has_remote_address() {
623 _has_bits_[0] |= 0x00000002u;
625 inline void TCPClientConfig::clear_has_remote_address() {
626 _has_bits_[0] &= ~0x00000002u;
630 clear_has_remote_address();
634 return remote_address_.GetNoArena();
637 set_has_remote_address();
643 set_has_remote_address();
644 remote_address_.SetNoArena(
650 GOOGLE_DCHECK(value != NULL);
651 set_has_remote_address();
656 set_has_remote_address();
658 ::std::string(
reinterpret_cast<const char*
>(value), size));
662 set_has_remote_address();
671 clear_has_remote_address();
676 set_has_remote_address();
678 clear_has_remote_address();
686 return (_has_bits_[0] & 0x00000004u) != 0;
688 inline void TCPClientConfig::set_has_remote_port() {
689 _has_bits_[0] |= 0x00000004u;
691 inline void TCPClientConfig::clear_has_remote_port() {
692 _has_bits_[0] &= ~0x00000004u;
696 clear_has_remote_port();
703 set_has_remote_port();
704 remote_port_ = value;
710 return (_has_bits_[0] & 0x00000008u) != 0;
712 inline void TCPClientConfig::set_has_ipv6() {
713 _has_bits_[0] |= 0x00000008u;
715 inline void TCPClientConfig::clear_has_ipv6() {
716 _has_bits_[0] &= ~0x00000008u;
733 #pragma GCC diagnostic pop
746 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto