4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
36 #include "dccl/option_extensions.pb.h"
37 #include <boost/units/quantity.hpp>
38 #include <boost/units/absolute.hpp>
39 #include <boost/units/dimensionless_type.hpp>
40 #include <boost/units/make_scaled_unit.hpp>
42 #include <boost/units/systems/si.hpp>
44 #include <google/protobuf/port_def.inc>
45 #define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto
46 PROTOBUF_NAMESPACE_OPEN
50 PROTOBUF_NAMESPACE_CLOSE
54 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
56 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
66 namespace middleware {
68 class TCPClientConfig;
69 class TCPClientConfigDefaultTypeInternal;
71 class TCPServerConfig;
72 class TCPServerConfigDefaultTypeInternal;
77 PROTOBUF_NAMESPACE_OPEN
78 template<> ::goby::middleware::protobuf::TCPClientConfig* Arena::CreateMaybeMessage<::goby::middleware::protobuf::TCPClientConfig>(Arena*);
79 template<> ::goby::middleware::protobuf::TCPServerConfig* Arena::CreateMaybeMessage<::goby::middleware::protobuf::TCPServerConfig>(Arena*);
80 PROTOBUF_NAMESPACE_CLOSE
82 namespace middleware {
87 class TCPServerConfig PROTOBUF_FINAL :
88 public ::PROTOBUF_NAMESPACE_ID::Message {
96 *
this = ::std::move(from);
99 inline TCPServerConfig&
operator=(
const TCPServerConfig& from) {
103 inline TCPServerConfig&
operator=(TCPServerConfig&& from) noexcept {
104 if (GetArena() == from.GetArena()) {
105 if (
this != &from) InternalSwap(&from);
113 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
116 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
119 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
120 return GetDescriptor();
123 return GetMetadataStatic().descriptor;
126 return GetMetadataStatic().reflection;
132 return reinterpret_cast<const TCPServerConfig*
>(
135 static constexpr
int kIndexInFileMessages =
138 friend void swap(TCPServerConfig& a, TCPServerConfig& b) {
141 inline void Swap(TCPServerConfig* other) {
142 if (other ==
this)
return;
143 if (GetArena() == other->GetArena()) {
146 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
150 if (other ==
this)
return;
151 GOOGLE_DCHECK(GetArena() == other->GetArena());
157 inline TCPServerConfig*
New() const final {
158 return CreateMaybeMessage<TCPServerConfig>(
nullptr);
161 TCPServerConfig*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
162 return CreateMaybeMessage<TCPServerConfig>(arena);
164 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
165 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
168 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
169 bool IsInitialized() const final;
172 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
173 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
174 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175 int GetCachedSize() const final {
return _cached_size_.Get(); }
178 inline void SharedCtor();
179 inline void SharedDtor();
180 void SetCachedSize(
int size)
const final;
181 void InternalSwap(TCPServerConfig* other);
182 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
183 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
184 return "goby.middleware.protobuf.TCPServerConfig";
189 static void ArenaDtor(
void*
object);
190 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
195 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
207 kEndOfLineFieldNumber = 3,
208 kBindPortFieldNumber = 2,
209 kSetReuseaddrFieldNumber = 10,
210 kIpv6FieldNumber = 11,
215 bool _internal_has_end_of_line()
const;
226 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
227 " string fields are deprecated and will be removed in a"
229 std::
string* unsafe_arena_release_end_of_line();
230 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
231 "
string fields are deprecated and will be removed in a"
233 void unsafe_arena_set_allocated_end_of_line(
234 std::
string* end_of_line);
236 const std::
string& _internal_end_of_line() const;
237 void _internal_set_end_of_line(const std::
string& value);
238 std::
string* _internal_mutable_end_of_line();
242 bool has_bind_port() const;
244 bool _internal_has_bind_port() const;
246 void clear_bind_port();
247 ::PROTOBUF_NAMESPACE_ID::
uint32 bind_port() const;
248 void set_bind_port(::PROTOBUF_NAMESPACE_ID::
uint32 value);
250 ::PROTOBUF_NAMESPACE_ID::
uint32 _internal_bind_port() const;
251 void _internal_set_bind_port(::PROTOBUF_NAMESPACE_ID::
uint32 value);
255 bool has_set_reuseaddr() const;
257 bool _internal_has_set_reuseaddr() const;
259 void clear_set_reuseaddr();
260 bool set_reuseaddr() const;
261 void set_set_reuseaddr(
bool value);
263 bool _internal_set_reuseaddr() const;
264 void _internal_set_set_reuseaddr(
bool value);
268 bool has_ipv6() const;
270 bool _internal_has_ipv6() const;
274 void set_ipv6(
bool value);
276 bool _internal_ipv6() const;
277 void _internal_set_ipv6(
bool value);
284 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
285 typedef
void InternalArenaConstructable_;
286 typedef
void DestructorSkippable_;
287 ::PROTOBUF_NAMESPACE_ID::
internal::HasBits<1> _has_bits_;
288 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
290 static ::PROTOBUF_NAMESPACE_ID::
internal::ExplicitlyConstructed<std::
string> _i_give_permission_to_break_this_code_default_end_of_line_;
292 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr end_of_line_;
293 ::PROTOBUF_NAMESPACE_ID::
uint32 bind_port_;
301 public ::PROTOBUF_NAMESPACE_ID::Message {
308 : TCPClientConfig() {
309 *
this = ::std::move(from);
312 inline TCPClientConfig&
operator=(
const TCPClientConfig& from) {
316 inline TCPClientConfig&
operator=(TCPClientConfig&& from) noexcept {
317 if (GetArena() == from.GetArena()) {
318 if (
this != &from) InternalSwap(&from);
326 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
329 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
332 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
333 return GetDescriptor();
336 return GetMetadataStatic().descriptor;
339 return GetMetadataStatic().reflection;
345 return reinterpret_cast<const TCPClientConfig*
>(
348 static constexpr
int kIndexInFileMessages =
351 friend void swap(TCPClientConfig& a, TCPClientConfig& b) {
354 inline void Swap(TCPClientConfig* other) {
355 if (other ==
this)
return;
356 if (GetArena() == other->GetArena()) {
359 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
363 if (other ==
this)
return;
364 GOOGLE_DCHECK(GetArena() == other->GetArena());
370 inline TCPClientConfig*
New() const final {
371 return CreateMaybeMessage<TCPClientConfig>(
nullptr);
374 TCPClientConfig*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
375 return CreateMaybeMessage<TCPClientConfig>(arena);
377 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
378 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
381 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
382 bool IsInitialized() const final;
385 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
386 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
387 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
388 int GetCachedSize() const final {
return _cached_size_.Get(); }
391 inline void SharedCtor();
392 inline void SharedDtor();
393 void SetCachedSize(
int size)
const final;
394 void InternalSwap(TCPClientConfig* other);
395 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
396 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
397 return "goby.middleware.protobuf.TCPClientConfig";
402 static void ArenaDtor(
void*
object);
403 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
408 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
420 kEndOfLineFieldNumber = 3,
421 kRemoteAddressFieldNumber = 5,
422 kRemotePortFieldNumber = 6,
423 kIpv6FieldNumber = 7,
428 bool _internal_has_end_of_line()
const;
439 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
440 " string fields are deprecated and will be removed in a"
442 std::
string* unsafe_arena_release_end_of_line();
443 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
444 "
string fields are deprecated and will be removed in a"
446 void unsafe_arena_set_allocated_end_of_line(
447 std::
string* end_of_line);
449 const std::
string& _internal_end_of_line() const;
450 void _internal_set_end_of_line(const std::
string& value);
451 std::
string* _internal_mutable_end_of_line();
455 bool has_remote_address() const;
457 bool _internal_has_remote_address() const;
459 void clear_remote_address();
460 const std::
string& remote_address() const;
461 void set_remote_address(const std::
string& value);
462 void set_remote_address(std::
string&& value);
463 void set_remote_address(const
char* value);
464 void set_remote_address(const
char* value,
size_t size);
465 std::
string* mutable_remote_address();
466 std::
string* release_remote_address();
467 void set_allocated_remote_address(std::
string* remote_address);
468 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
469 "
string fields are deprecated and will be removed in a"
471 std::
string* unsafe_arena_release_remote_address();
472 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
473 "
string fields are deprecated and will be removed in a"
475 void unsafe_arena_set_allocated_remote_address(
476 std::
string* remote_address);
478 const std::
string& _internal_remote_address() const;
479 void _internal_set_remote_address(const std::
string& value);
480 std::
string* _internal_mutable_remote_address();
484 bool has_remote_port() const;
486 bool _internal_has_remote_port() const;
488 void clear_remote_port();
489 ::PROTOBUF_NAMESPACE_ID::
uint32 remote_port() const;
490 void set_remote_port(::PROTOBUF_NAMESPACE_ID::
uint32 value);
492 ::PROTOBUF_NAMESPACE_ID::
uint32 _internal_remote_port() const;
493 void _internal_set_remote_port(::PROTOBUF_NAMESPACE_ID::
uint32 value);
497 bool has_ipv6() const;
499 bool _internal_has_ipv6() const;
503 void set_ipv6(
bool value);
505 bool _internal_ipv6() const;
506 void _internal_set_ipv6(
bool value);
514 size_t RequiredFieldsByteSizeFallback() const;
516 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
517 typedef
void InternalArenaConstructable_;
518 typedef
void DestructorSkippable_;
519 ::PROTOBUF_NAMESPACE_ID::
internal::HasBits<1> _has_bits_;
520 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
522 static ::PROTOBUF_NAMESPACE_ID::
internal::ExplicitlyConstructed<std::
string> _i_give_permission_to_break_this_code_default_end_of_line_;
524 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr end_of_line_;
525 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr remote_address_;
526 ::PROTOBUF_NAMESPACE_ID::
uint32 remote_port_;
536 #pragma GCC diagnostic push
537 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
542 inline bool TCPServerConfig::_internal_has_bind_port()
const {
543 bool value = (_has_bits_[0] & 0x00000002u) != 0;
546 inline bool TCPServerConfig::has_bind_port()
const {
547 return _internal_has_bind_port();
549 inline void TCPServerConfig::clear_bind_port() {
551 _has_bits_[0] &= ~0x00000002u;
558 return _internal_bind_port();
561 _has_bits_[0] |= 0x00000002u;
565 _internal_set_bind_port(value);
570 inline bool TCPServerConfig::_internal_has_end_of_line()
const {
571 bool value = (_has_bits_[0] & 0x00000001u) != 0;
574 inline bool TCPServerConfig::has_end_of_line()
const {
575 return _internal_has_end_of_line();
577 inline void TCPServerConfig::clear_end_of_line() {
578 end_of_line_.ClearToDefault(&::goby::middleware::protobuf::TCPServerConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), GetArena());
579 _has_bits_[0] &= ~0x00000001u;
581 inline const std::string& TCPServerConfig::end_of_line()
const {
583 return _internal_end_of_line();
585 inline void TCPServerConfig::set_end_of_line(
const std::string& value) {
586 _internal_set_end_of_line(value);
589 inline std::string* TCPServerConfig::mutable_end_of_line() {
591 return _internal_mutable_end_of_line();
593 inline const std::string& TCPServerConfig::_internal_end_of_line()
const {
594 return end_of_line_.Get();
596 inline void TCPServerConfig::_internal_set_end_of_line(
const std::string& value) {
597 _has_bits_[0] |= 0x00000001u;
598 end_of_line_.Set(&::goby::middleware::protobuf::TCPServerConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), value, GetArena());
600 inline void TCPServerConfig::set_end_of_line(std::string&& value) {
601 _has_bits_[0] |= 0x00000001u;
603 &::goby::middleware::protobuf::TCPServerConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), ::std::move(value), GetArena());
606 inline void TCPServerConfig::set_end_of_line(
const char* value) {
607 GOOGLE_DCHECK(value !=
nullptr);
608 _has_bits_[0] |= 0x00000001u;
609 end_of_line_.Set(&::goby::middleware::protobuf::TCPServerConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), ::std::string(value),
613 inline void TCPServerConfig::set_end_of_line(
const char* value,
615 _has_bits_[0] |= 0x00000001u;
616 end_of_line_.Set(&::goby::middleware::protobuf::TCPServerConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), ::std::string(
617 reinterpret_cast<const char*
>(value), size), GetArena());
620 inline std::string* TCPServerConfig::_internal_mutable_end_of_line() {
621 _has_bits_[0] |= 0x00000001u;
622 return end_of_line_.Mutable(&::goby::middleware::protobuf::TCPServerConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), GetArena());
624 inline std::string* TCPServerConfig::release_end_of_line() {
626 if (!_internal_has_end_of_line()) {
629 _has_bits_[0] &= ~0x00000001u;
630 return end_of_line_.ReleaseNonDefault(&::goby::middleware::protobuf::TCPServerConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), GetArena());
632 inline void TCPServerConfig::set_allocated_end_of_line(std::string* end_of_line) {
633 if (end_of_line !=
nullptr) {
634 _has_bits_[0] |= 0x00000001u;
636 _has_bits_[0] &= ~0x00000001u;
638 end_of_line_.SetAllocated(&::goby::middleware::protobuf::TCPServerConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), end_of_line,
642 inline std::string* TCPServerConfig::unsafe_arena_release_end_of_line() {
644 GOOGLE_DCHECK(GetArena() !=
nullptr);
645 _has_bits_[0] &= ~0x00000001u;
646 return end_of_line_.UnsafeArenaRelease(&::goby::middleware::protobuf::TCPServerConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(),
649 inline void TCPServerConfig::unsafe_arena_set_allocated_end_of_line(
650 std::string* end_of_line) {
651 GOOGLE_DCHECK(GetArena() !=
nullptr);
652 if (end_of_line !=
nullptr) {
653 _has_bits_[0] |= 0x00000001u;
655 _has_bits_[0] &= ~0x00000001u;
657 end_of_line_.UnsafeArenaSetAllocated(&::goby::middleware::protobuf::TCPServerConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(),
658 end_of_line, GetArena());
663 inline bool TCPServerConfig::_internal_has_set_reuseaddr()
const {
664 bool value = (_has_bits_[0] & 0x00000004u) != 0;
667 inline bool TCPServerConfig::has_set_reuseaddr()
const {
668 return _internal_has_set_reuseaddr();
670 inline void TCPServerConfig::clear_set_reuseaddr() {
671 set_reuseaddr_ =
false;
672 _has_bits_[0] &= ~0x00000004u;
674 inline bool TCPServerConfig::_internal_set_reuseaddr()
const {
675 return set_reuseaddr_;
677 inline bool TCPServerConfig::set_reuseaddr()
const {
679 return _internal_set_reuseaddr();
681 inline void TCPServerConfig::_internal_set_set_reuseaddr(
bool value) {
682 _has_bits_[0] |= 0x00000004u;
683 set_reuseaddr_ =
value;
685 inline void TCPServerConfig::set_set_reuseaddr(
bool value) {
686 _internal_set_set_reuseaddr(value);
691 inline bool TCPServerConfig::_internal_has_ipv6()
const {
692 bool value = (_has_bits_[0] & 0x00000008u) != 0;
695 inline bool TCPServerConfig::has_ipv6()
const {
696 return _internal_has_ipv6();
698 inline void TCPServerConfig::clear_ipv6() {
700 _has_bits_[0] &= ~0x00000008u;
702 inline bool TCPServerConfig::_internal_ipv6()
const {
705 inline bool TCPServerConfig::ipv6()
const {
707 return _internal_ipv6();
709 inline void TCPServerConfig::_internal_set_ipv6(
bool value) {
710 _has_bits_[0] |= 0x00000008u;
713 inline void TCPServerConfig::set_ipv6(
bool value) {
714 _internal_set_ipv6(value);
723 inline bool TCPClientConfig::_internal_has_end_of_line()
const {
724 bool value = (_has_bits_[0] & 0x00000001u) != 0;
727 inline bool TCPClientConfig::has_end_of_line()
const {
728 return _internal_has_end_of_line();
730 inline void TCPClientConfig::clear_end_of_line() {
731 end_of_line_.ClearToDefault(&::goby::middleware::protobuf::TCPClientConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), GetArena());
732 _has_bits_[0] &= ~0x00000001u;
734 inline const std::string& TCPClientConfig::end_of_line()
const {
736 return _internal_end_of_line();
738 inline void TCPClientConfig::set_end_of_line(
const std::string& value) {
739 _internal_set_end_of_line(value);
742 inline std::string* TCPClientConfig::mutable_end_of_line() {
744 return _internal_mutable_end_of_line();
746 inline const std::string& TCPClientConfig::_internal_end_of_line()
const {
747 return end_of_line_.Get();
749 inline void TCPClientConfig::_internal_set_end_of_line(
const std::string& value) {
750 _has_bits_[0] |= 0x00000001u;
751 end_of_line_.Set(&::goby::middleware::protobuf::TCPClientConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), value, GetArena());
753 inline void TCPClientConfig::set_end_of_line(std::string&& value) {
754 _has_bits_[0] |= 0x00000001u;
756 &::goby::middleware::protobuf::TCPClientConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), ::std::move(value), GetArena());
759 inline void TCPClientConfig::set_end_of_line(
const char* value) {
760 GOOGLE_DCHECK(value !=
nullptr);
761 _has_bits_[0] |= 0x00000001u;
762 end_of_line_.Set(&::goby::middleware::protobuf::TCPClientConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), ::std::string(value),
766 inline void TCPClientConfig::set_end_of_line(
const char* value,
768 _has_bits_[0] |= 0x00000001u;
769 end_of_line_.Set(&::goby::middleware::protobuf::TCPClientConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), ::std::string(
770 reinterpret_cast<const char*
>(value), size), GetArena());
773 inline std::string* TCPClientConfig::_internal_mutable_end_of_line() {
774 _has_bits_[0] |= 0x00000001u;
775 return end_of_line_.Mutable(&::goby::middleware::protobuf::TCPClientConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), GetArena());
777 inline std::string* TCPClientConfig::release_end_of_line() {
779 if (!_internal_has_end_of_line()) {
782 _has_bits_[0] &= ~0x00000001u;
783 return end_of_line_.ReleaseNonDefault(&::goby::middleware::protobuf::TCPClientConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), GetArena());
785 inline void TCPClientConfig::set_allocated_end_of_line(std::string* end_of_line) {
786 if (end_of_line !=
nullptr) {
787 _has_bits_[0] |= 0x00000001u;
789 _has_bits_[0] &= ~0x00000001u;
791 end_of_line_.SetAllocated(&::goby::middleware::protobuf::TCPClientConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(), end_of_line,
795 inline std::string* TCPClientConfig::unsafe_arena_release_end_of_line() {
797 GOOGLE_DCHECK(GetArena() !=
nullptr);
798 _has_bits_[0] &= ~0x00000001u;
799 return end_of_line_.UnsafeArenaRelease(&::goby::middleware::protobuf::TCPClientConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(),
802 inline void TCPClientConfig::unsafe_arena_set_allocated_end_of_line(
803 std::string* end_of_line) {
804 GOOGLE_DCHECK(GetArena() !=
nullptr);
805 if (end_of_line !=
nullptr) {
806 _has_bits_[0] |= 0x00000001u;
808 _has_bits_[0] &= ~0x00000001u;
810 end_of_line_.UnsafeArenaSetAllocated(&::goby::middleware::protobuf::TCPClientConfig::_i_give_permission_to_break_this_code_default_end_of_line_.
get(),
811 end_of_line, GetArena());
816 inline bool TCPClientConfig::_internal_has_remote_address()
const {
817 bool value = (_has_bits_[0] & 0x00000002u) != 0;
820 inline bool TCPClientConfig::has_remote_address()
const {
821 return _internal_has_remote_address();
823 inline void TCPClientConfig::clear_remote_address() {
825 _has_bits_[0] &= ~0x00000002u;
827 inline const std::string& TCPClientConfig::remote_address()
const {
829 return _internal_remote_address();
831 inline void TCPClientConfig::set_remote_address(
const std::string& value) {
832 _internal_set_remote_address(value);
835 inline std::string* TCPClientConfig::mutable_remote_address() {
837 return _internal_mutable_remote_address();
839 inline const std::string& TCPClientConfig::_internal_remote_address()
const {
840 return remote_address_.Get();
842 inline void TCPClientConfig::_internal_set_remote_address(
const std::string& value) {
843 _has_bits_[0] |= 0x00000002u;
846 inline void TCPClientConfig::set_remote_address(std::string&& value) {
847 _has_bits_[0] |= 0x00000002u;
852 inline void TCPClientConfig::set_remote_address(
const char* value) {
853 GOOGLE_DCHECK(value !=
nullptr);
854 _has_bits_[0] |= 0x00000002u;
859 inline void TCPClientConfig::set_remote_address(
const char* value,
861 _has_bits_[0] |= 0x00000002u;
863 reinterpret_cast<const char*
>(value), size), GetArena());
866 inline std::string* TCPClientConfig::_internal_mutable_remote_address() {
867 _has_bits_[0] |= 0x00000002u;
870 inline std::string* TCPClientConfig::release_remote_address() {
872 if (!_internal_has_remote_address()) {
875 _has_bits_[0] &= ~0x00000002u;
878 inline void TCPClientConfig::set_allocated_remote_address(std::string* remote_address) {
879 if (remote_address !=
nullptr) {
880 _has_bits_[0] |= 0x00000002u;
882 _has_bits_[0] &= ~0x00000002u;
888 inline std::string* TCPClientConfig::unsafe_arena_release_remote_address() {
890 GOOGLE_DCHECK(GetArena() !=
nullptr);
891 _has_bits_[0] &= ~0x00000002u;
895 inline void TCPClientConfig::unsafe_arena_set_allocated_remote_address(
896 std::string* remote_address) {
897 GOOGLE_DCHECK(GetArena() !=
nullptr);
898 if (remote_address !=
nullptr) {
899 _has_bits_[0] |= 0x00000002u;
901 _has_bits_[0] &= ~0x00000002u;
904 remote_address, GetArena());
909 inline bool TCPClientConfig::_internal_has_remote_port()
const {
910 bool value = (_has_bits_[0] & 0x00000004u) != 0;
913 inline bool TCPClientConfig::has_remote_port()
const {
914 return _internal_has_remote_port();
916 inline void TCPClientConfig::clear_remote_port() {
918 _has_bits_[0] &= ~0x00000004u;
925 return _internal_remote_port();
928 _has_bits_[0] |= 0x00000004u;
929 remote_port_ =
value;
932 _internal_set_remote_port(value);
937 inline bool TCPClientConfig::_internal_has_ipv6()
const {
938 bool value = (_has_bits_[0] & 0x00000008u) != 0;
941 inline bool TCPClientConfig::has_ipv6()
const {
942 return _internal_has_ipv6();
944 inline void TCPClientConfig::clear_ipv6() {
946 _has_bits_[0] &= ~0x00000008u;
948 inline bool TCPClientConfig::_internal_ipv6()
const {
951 inline bool TCPClientConfig::ipv6()
const {
953 return _internal_ipv6();
955 inline void TCPClientConfig::_internal_set_ipv6(
bool value) {
956 _has_bits_[0] |= 0x00000008u;
959 inline void TCPClientConfig::set_ipv6(
bool value) {
960 _internal_set_ipv6(value);
965 #pragma GCC diagnostic pop
978 #include <google/protobuf/port_undef.inc>
TCPClientConfig(TCPClientConfig &&from) noexcept
bool has_end_of_line() const
static void InitAsDefaultInstance()
TCPClientConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_allocated_end_of_line(std::string *end_of_line)
TCPServerConfig * New() const final
void UnsafeArenaSwap(TCPClientConfig *other)
TCPServerConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
TCPServerConfig & operator=(const TCPServerConfig &from)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
TCPClientConfig & operator=(const TCPClientConfig &from)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void MergeFrom(const TCPServerConfig &from)
friend void swap(TCPClientConfig &a, TCPClientConfig &b)
const std::string & end_of_line() const
static const TCPClientConfig & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
std::string * mutable_end_of_line()
void set_end_of_line(const char *value, size_t size)
void UnsafeArenaSwap(TCPServerConfig *other)
TCPClientConfig(const TCPClientConfig &from)
TCPClientConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
TCPServerConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const TCPClientConfig * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
friend void swap(TCPServerConfig &a, TCPServerConfig &b)
void CopyFrom(const TCPServerConfig &from)
void set_end_of_line(std::string &&value)
std::string * release_end_of_line()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void Swap(TCPClientConfig *other)
virtual ~TCPClientConfig()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
TCPServerConfig & operator=(TCPServerConfig &&from) noexcept
void set_end_of_line(const std::string &value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
TCPServerConfig(TCPServerConfig &&from) noexcept
TCPServerConfig(const TCPServerConfig &from)
void set_end_of_line(const char *value)
void MergeFrom(const TCPClientConfig &from)
static const TCPServerConfig * internal_default_instance()
virtual ~TCPServerConfig()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
TCPClientConfig & operator=(TCPClientConfig &&from) noexcept
void Swap(TCPServerConfig *other)
void CopyFrom(const TCPClientConfig &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
TCPClientConfig * New() const final
static const TCPServerConfig & default_instance()
@ value
the parser finished reading a JSON value
auto get(const nlohmann::detail::iteration_proxy_value< IteratorType > &i) -> decltype(i.key())
TCPClientConfigDefaultTypeInternal _TCPClientConfig_default_instance_
TCPServerConfigDefaultTypeInternal _TCPServerConfig_default_instance_
The global namespace for the Goby project.
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto