Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
tcp_config.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/middleware/protobuf/tcp_config.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_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>
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>
39
40#include <boost/units/systems/si.hpp>
41// @@protoc_insertion_point(includes)
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto
44PROTOBUF_NAMESPACE_OPEN
45namespace internal {
46class AnyMetadata;
47} // namespace internal
48PROTOBUF_NAMESPACE_CLOSE
49
50// Internal implementation detail -- do not use these members.
54extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto;
55namespace goby {
56namespace middleware {
57namespace protobuf {
58class TCPClientConfig;
59struct TCPClientConfigDefaultTypeInternal;
60extern TCPClientConfigDefaultTypeInternal _TCPClientConfig_default_instance_;
61class TCPServerConfig;
62struct TCPServerConfigDefaultTypeInternal;
63extern TCPServerConfigDefaultTypeInternal _TCPServerConfig_default_instance_;
64} // namespace protobuf
65} // namespace middleware
66} // namespace goby
67PROTOBUF_NAMESPACE_OPEN
68template<> ::goby::middleware::protobuf::TCPClientConfig* Arena::CreateMaybeMessage<::goby::middleware::protobuf::TCPClientConfig>(Arena*);
69template<> ::goby::middleware::protobuf::TCPServerConfig* Arena::CreateMaybeMessage<::goby::middleware::protobuf::TCPServerConfig>(Arena*);
70PROTOBUF_NAMESPACE_CLOSE
71namespace goby {
72namespace middleware {
73namespace protobuf {
74
75// ===================================================================
76
77class TCPServerConfig final :
78 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.TCPServerConfig) */ {
79 public:
80 inline TCPServerConfig() : TCPServerConfig(nullptr) {}
81 ~TCPServerConfig() override;
82 explicit PROTOBUF_CONSTEXPR TCPServerConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
83
86 : TCPServerConfig() {
87 *this = ::std::move(from);
88 }
89
91 CopyFrom(from);
92 return *this;
93 }
94 inline TCPServerConfig& operator=(TCPServerConfig&& from) noexcept {
95 if (this == &from) return *this;
96 if (GetOwningArena() == from.GetOwningArena()
97 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
98 && GetOwningArena() != nullptr
99 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
100 ) {
101 InternalSwap(&from);
102 } else {
103 CopyFrom(from);
104 }
105 return *this;
106 }
107
108 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
109 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
110 }
111 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
112 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
113 }
114
115 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
116 return GetDescriptor();
117 }
118 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
119 return default_instance().GetMetadata().descriptor;
120 }
121 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
122 return default_instance().GetMetadata().reflection;
123 }
126 }
128 return reinterpret_cast<const TCPServerConfig*>(
130 }
131 static constexpr int kIndexInFileMessages =
132 0;
133
135 a.Swap(&b);
136 }
137 inline void Swap(TCPServerConfig* other) {
138 if (other == this) return;
139 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
140 if (GetOwningArena() != nullptr &&
141 GetOwningArena() == other->GetOwningArena()) {
142 #else // PROTOBUF_FORCE_COPY_IN_SWAP
143 if (GetOwningArena() == other->GetOwningArena()) {
144 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
145 InternalSwap(other);
146 } else {
147 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
148 }
149 }
151 if (other == this) return;
152 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
153 InternalSwap(other);
154 }
155
156 // implements Message ----------------------------------------------
157
158 TCPServerConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
159 return CreateMaybeMessage<TCPServerConfig>(arena);
160 }
161 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
162 void CopyFrom(const TCPServerConfig& from);
163 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
164 void MergeFrom( const TCPServerConfig& from) {
165 TCPServerConfig::MergeImpl(*this, from);
166 }
167 private:
168 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
169 public:
170 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
171 bool IsInitialized() const final;
172
173 size_t ByteSizeLong() const final;
174 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
176 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
177 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
178
179 private:
180 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
181 void SharedDtor();
182 void SetCachedSize(int size) const final;
183 void InternalSwap(TCPServerConfig* other);
184
185 private:
186 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
187 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
188 return "goby.middleware.protobuf.TCPServerConfig";
189 }
190 protected:
191 explicit TCPServerConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
192 bool is_message_owned = false);
193 public:
194
195 static const ClassData _class_data_;
196 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
197
198 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
199
200 // nested types ----------------------------------------------------
201
202 // accessors -------------------------------------------------------
203
204 enum : int {
209 };
210 // optional string end_of_line = 3 [default = "\n", (.goby.field) = {
211 bool has_end_of_line() const;
212 private:
213 bool _internal_has_end_of_line() const;
214 public:
215 void clear_end_of_line();
216 const std::string& end_of_line() const;
217 template <typename ArgT0 = const std::string&, typename... ArgT>
218 void set_end_of_line(ArgT0&& arg0, ArgT... args);
219 std::string* mutable_end_of_line();
220 PROTOBUF_NODISCARD std::string* release_end_of_line();
221 void set_allocated_end_of_line(std::string* end_of_line);
222 private:
223 const std::string& _internal_end_of_line() const;
224 inline PROTOBUF_ALWAYS_INLINE void _internal_set_end_of_line(const std::string& value);
225 std::string* _internal_mutable_end_of_line();
226 public:
227
228 // required uint32 bind_port = 2 [(.goby.field) = {
229 bool has_bind_port() const;
230 private:
231 bool _internal_has_bind_port() const;
232 public:
233 void clear_bind_port();
234 uint32_t bind_port() const;
235 void set_bind_port(uint32_t value);
236 private:
237 uint32_t _internal_bind_port() const;
238 void _internal_set_bind_port(uint32_t value);
239 public:
240
241 // optional bool set_reuseaddr = 10 [default = false];
242 bool has_set_reuseaddr() const;
243 private:
244 bool _internal_has_set_reuseaddr() const;
245 public:
246 void clear_set_reuseaddr();
247 bool set_reuseaddr() const;
248 void set_set_reuseaddr(bool value);
249 private:
250 bool _internal_set_reuseaddr() const;
251 void _internal_set_set_reuseaddr(bool value);
252 public:
253
254 // optional bool ipv6 = 11 [default = false];
255 bool has_ipv6() const;
256 private:
257 bool _internal_has_ipv6() const;
258 public:
259 void clear_ipv6();
260 bool ipv6() const;
261 void set_ipv6(bool value);
262 private:
263 bool _internal_ipv6() const;
264 void _internal_set_ipv6(bool value);
265 public:
266
267 // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.TCPServerConfig)
268 private:
269 class _Internal;
270
271 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
272 typedef void InternalArenaConstructable_;
273 typedef void DestructorSkippable_;
274 struct Impl_ {
275 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
276 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
277 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_end_of_line_;
278 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr end_of_line_;
279 uint32_t bind_port_;
280 bool set_reuseaddr_;
281 bool ipv6_;
282 };
283 union { Impl_ _impl_; };
284 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto;
285};
286// -------------------------------------------------------------------
287
288class TCPClientConfig final :
289 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.TCPClientConfig) */ {
290 public:
291 inline TCPClientConfig() : TCPClientConfig(nullptr) {}
293 explicit PROTOBUF_CONSTEXPR TCPClientConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
294
297 : TCPClientConfig() {
298 *this = ::std::move(from);
299 }
300
302 CopyFrom(from);
303 return *this;
304 }
305 inline TCPClientConfig& operator=(TCPClientConfig&& from) noexcept {
306 if (this == &from) return *this;
307 if (GetOwningArena() == from.GetOwningArena()
308 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
309 && GetOwningArena() != nullptr
310 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
311 ) {
312 InternalSwap(&from);
313 } else {
314 CopyFrom(from);
315 }
316 return *this;
317 }
318
319 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
320 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
321 }
322 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
323 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
324 }
325
326 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
327 return GetDescriptor();
328 }
329 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
330 return default_instance().GetMetadata().descriptor;
331 }
332 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
333 return default_instance().GetMetadata().reflection;
334 }
336 return *internal_default_instance();
337 }
339 return reinterpret_cast<const TCPClientConfig*>(
341 }
342 static constexpr int kIndexInFileMessages =
343 1;
344
346 a.Swap(&b);
347 }
348 inline void Swap(TCPClientConfig* other) {
349 if (other == this) return;
350 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
351 if (GetOwningArena() != nullptr &&
352 GetOwningArena() == other->GetOwningArena()) {
353 #else // PROTOBUF_FORCE_COPY_IN_SWAP
354 if (GetOwningArena() == other->GetOwningArena()) {
355 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
356 InternalSwap(other);
357 } else {
358 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
359 }
360 }
362 if (other == this) return;
363 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
364 InternalSwap(other);
365 }
366
367 // implements Message ----------------------------------------------
368
369 TCPClientConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
370 return CreateMaybeMessage<TCPClientConfig>(arena);
371 }
372 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
373 void CopyFrom(const TCPClientConfig& from);
374 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
375 void MergeFrom( const TCPClientConfig& from) {
376 TCPClientConfig::MergeImpl(*this, from);
377 }
378 private:
379 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
380 public:
381 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
382 bool IsInitialized() const final;
383
384 size_t ByteSizeLong() const final;
385 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
386 uint8_t* _InternalSerialize(
387 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
388 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
389
390 private:
391 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
392 void SharedDtor();
393 void SetCachedSize(int size) const final;
394 void InternalSwap(TCPClientConfig* other);
395
396 private:
397 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
398 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
399 return "goby.middleware.protobuf.TCPClientConfig";
400 }
401 protected:
402 explicit TCPClientConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
403 bool is_message_owned = false);
404 public:
405
406 static const ClassData _class_data_;
407 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
408
409 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
410
411 // nested types ----------------------------------------------------
412
413 // accessors -------------------------------------------------------
414
415 enum : int {
416 kEndOfLineFieldNumber = 3,
417 kRemoteAddressFieldNumber = 5,
418 kRemotePortFieldNumber = 6,
419 kIpv6FieldNumber = 7,
420 };
421 // optional string end_of_line = 3 [default = "\n", (.goby.field) = {
422 bool has_end_of_line() const;
423 private:
424 bool _internal_has_end_of_line() const;
425 public:
426 void clear_end_of_line();
427 const std::string& end_of_line() const;
428 template <typename ArgT0 = const std::string&, typename... ArgT>
429 void set_end_of_line(ArgT0&& arg0, ArgT... args);
430 std::string* mutable_end_of_line();
431 PROTOBUF_NODISCARD std::string* release_end_of_line();
432 void set_allocated_end_of_line(std::string* end_of_line);
433 private:
434 const std::string& _internal_end_of_line() const;
435 inline PROTOBUF_ALWAYS_INLINE void _internal_set_end_of_line(const std::string& value);
436 std::string* _internal_mutable_end_of_line();
437 public:
438
439 // required string remote_address = 5 [(.goby.field) = {
440 bool has_remote_address() const;
441 private:
442 bool _internal_has_remote_address() const;
443 public:
444 void clear_remote_address();
445 const std::string& remote_address() const;
446 template <typename ArgT0 = const std::string&, typename... ArgT>
447 void set_remote_address(ArgT0&& arg0, ArgT... args);
448 std::string* mutable_remote_address();
449 PROTOBUF_NODISCARD std::string* release_remote_address();
450 void set_allocated_remote_address(std::string* remote_address);
451 private:
452 const std::string& _internal_remote_address() const;
453 inline PROTOBUF_ALWAYS_INLINE void _internal_set_remote_address(const std::string& value);
454 std::string* _internal_mutable_remote_address();
455 public:
456
457 // required uint32 remote_port = 6 [(.goby.field) = {
458 bool has_remote_port() const;
459 private:
460 bool _internal_has_remote_port() const;
461 public:
462 void clear_remote_port();
463 uint32_t remote_port() const;
464 void set_remote_port(uint32_t value);
465 private:
466 uint32_t _internal_remote_port() const;
467 void _internal_set_remote_port(uint32_t value);
468 public:
469
470 // optional bool ipv6 = 7 [default = false];
471 bool has_ipv6() const;
472 private:
473 bool _internal_has_ipv6() const;
474 public:
475 void clear_ipv6();
476 bool ipv6() const;
477 void set_ipv6(bool value);
478 private:
479 bool _internal_ipv6() const;
480 void _internal_set_ipv6(bool value);
481 public:
482
483 // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.TCPClientConfig)
484 private:
485 class _Internal;
486
487 // helper for ByteSizeLong()
488 size_t RequiredFieldsByteSizeFallback() const;
489
490 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
491 typedef void InternalArenaConstructable_;
492 typedef void DestructorSkippable_;
493 struct Impl_ {
494 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
495 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
496 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_end_of_line_;
497 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr end_of_line_;
498 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr remote_address_;
499 uint32_t remote_port_;
500 bool ipv6_;
501 };
502 union { Impl_ _impl_; };
503 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto;
504};
505// ===================================================================
506
507
508// ===================================================================
509
510#ifdef __GNUC__
511 #pragma GCC diagnostic push
512 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
513#endif // __GNUC__
514// TCPServerConfig
515
516// required uint32 bind_port = 2 [(.goby.field) = {
517inline bool TCPServerConfig::_internal_has_bind_port() const {
518 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
519 return value;
520}
521inline bool TCPServerConfig::has_bind_port() const {
522 return _internal_has_bind_port();
523}
524inline void TCPServerConfig::clear_bind_port() {
525 _impl_.bind_port_ = 0u;
526 _impl_._has_bits_[0] &= ~0x00000002u;
527}
528inline uint32_t TCPServerConfig::_internal_bind_port() const {
529 return _impl_.bind_port_;
530}
531inline uint32_t TCPServerConfig::bind_port() const {
532 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.TCPServerConfig.bind_port)
533 return _internal_bind_port();
534}
535inline void TCPServerConfig::_internal_set_bind_port(uint32_t value) {
536 _impl_._has_bits_[0] |= 0x00000002u;
537 _impl_.bind_port_ = value;
538}
539inline void TCPServerConfig::set_bind_port(uint32_t value) {
540 _internal_set_bind_port(value);
541 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.TCPServerConfig.bind_port)
542}
543
544// optional string end_of_line = 3 [default = "\n", (.goby.field) = {
545inline bool TCPServerConfig::_internal_has_end_of_line() const {
546 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
547 return value;
548}
549inline bool TCPServerConfig::has_end_of_line() const {
550 return _internal_has_end_of_line();
551}
552inline void TCPServerConfig::clear_end_of_line() {
553 _impl_.end_of_line_.ClearToDefault(::goby::middleware::protobuf::TCPServerConfig::Impl_::_i_give_permission_to_break_this_code_default_end_of_line_, GetArenaForAllocation());
554 _impl_._has_bits_[0] &= ~0x00000001u;
555}
556inline const std::string& TCPServerConfig::end_of_line() const {
557 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.TCPServerConfig.end_of_line)
558 if (_impl_.end_of_line_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_end_of_line_.get();
559 return _internal_end_of_line();
560}
561template <typename ArgT0, typename... ArgT>
562inline PROTOBUF_ALWAYS_INLINE
563void TCPServerConfig::set_end_of_line(ArgT0&& arg0, ArgT... args) {
564 _impl_._has_bits_[0] |= 0x00000001u;
565 _impl_.end_of_line_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
566 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.TCPServerConfig.end_of_line)
567}
568inline std::string* TCPServerConfig::mutable_end_of_line() {
569 std::string* _s = _internal_mutable_end_of_line();
570 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.TCPServerConfig.end_of_line)
571 return _s;
572}
573inline const std::string& TCPServerConfig::_internal_end_of_line() const {
574 return _impl_.end_of_line_.Get();
575}
576inline void TCPServerConfig::_internal_set_end_of_line(const std::string& value) {
577 _impl_._has_bits_[0] |= 0x00000001u;
578 _impl_.end_of_line_.Set(value, GetArenaForAllocation());
579}
580inline std::string* TCPServerConfig::_internal_mutable_end_of_line() {
581 _impl_._has_bits_[0] |= 0x00000001u;
582 return _impl_.end_of_line_.Mutable(::goby::middleware::protobuf::TCPServerConfig::Impl_::_i_give_permission_to_break_this_code_default_end_of_line_, GetArenaForAllocation());
583}
584inline std::string* TCPServerConfig::release_end_of_line() {
585 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.TCPServerConfig.end_of_line)
586 if (!_internal_has_end_of_line()) {
587 return nullptr;
588 }
589 _impl_._has_bits_[0] &= ~0x00000001u;
590 auto* p = _impl_.end_of_line_.Release();
591 return p;
592}
593inline void TCPServerConfig::set_allocated_end_of_line(std::string* end_of_line) {
594 if (end_of_line != nullptr) {
595 _impl_._has_bits_[0] |= 0x00000001u;
596 } else {
597 _impl_._has_bits_[0] &= ~0x00000001u;
598 }
599 _impl_.end_of_line_.SetAllocated(end_of_line, GetArenaForAllocation());
600 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.TCPServerConfig.end_of_line)
601}
602
603// optional bool set_reuseaddr = 10 [default = false];
604inline bool TCPServerConfig::_internal_has_set_reuseaddr() const {
605 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
606 return value;
607}
608inline bool TCPServerConfig::has_set_reuseaddr() const {
609 return _internal_has_set_reuseaddr();
610}
611inline void TCPServerConfig::clear_set_reuseaddr() {
612 _impl_.set_reuseaddr_ = false;
613 _impl_._has_bits_[0] &= ~0x00000004u;
614}
615inline bool TCPServerConfig::_internal_set_reuseaddr() const {
616 return _impl_.set_reuseaddr_;
617}
618inline bool TCPServerConfig::set_reuseaddr() const {
619 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.TCPServerConfig.set_reuseaddr)
620 return _internal_set_reuseaddr();
621}
622inline void TCPServerConfig::_internal_set_set_reuseaddr(bool value) {
623 _impl_._has_bits_[0] |= 0x00000004u;
624 _impl_.set_reuseaddr_ = value;
625}
626inline void TCPServerConfig::set_set_reuseaddr(bool value) {
627 _internal_set_set_reuseaddr(value);
628 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.TCPServerConfig.set_reuseaddr)
629}
630
631// optional bool ipv6 = 11 [default = false];
632inline bool TCPServerConfig::_internal_has_ipv6() const {
633 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
634 return value;
635}
636inline bool TCPServerConfig::has_ipv6() const {
637 return _internal_has_ipv6();
638}
639inline void TCPServerConfig::clear_ipv6() {
640 _impl_.ipv6_ = false;
641 _impl_._has_bits_[0] &= ~0x00000008u;
642}
643inline bool TCPServerConfig::_internal_ipv6() const {
644 return _impl_.ipv6_;
645}
646inline bool TCPServerConfig::ipv6() const {
647 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.TCPServerConfig.ipv6)
648 return _internal_ipv6();
649}
650inline void TCPServerConfig::_internal_set_ipv6(bool value) {
651 _impl_._has_bits_[0] |= 0x00000008u;
652 _impl_.ipv6_ = value;
653}
654inline void TCPServerConfig::set_ipv6(bool value) {
655 _internal_set_ipv6(value);
656 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.TCPServerConfig.ipv6)
657}
658
659// -------------------------------------------------------------------
660
661// TCPClientConfig
662
663// optional string end_of_line = 3 [default = "\n", (.goby.field) = {
664inline bool TCPClientConfig::_internal_has_end_of_line() const {
665 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
666 return value;
667}
668inline bool TCPClientConfig::has_end_of_line() const {
669 return _internal_has_end_of_line();
670}
671inline void TCPClientConfig::clear_end_of_line() {
672 _impl_.end_of_line_.ClearToDefault(::goby::middleware::protobuf::TCPClientConfig::Impl_::_i_give_permission_to_break_this_code_default_end_of_line_, GetArenaForAllocation());
673 _impl_._has_bits_[0] &= ~0x00000001u;
674}
675inline const std::string& TCPClientConfig::end_of_line() const {
676 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.TCPClientConfig.end_of_line)
677 if (_impl_.end_of_line_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_end_of_line_.get();
678 return _internal_end_of_line();
679}
680template <typename ArgT0, typename... ArgT>
681inline PROTOBUF_ALWAYS_INLINE
682void TCPClientConfig::set_end_of_line(ArgT0&& arg0, ArgT... args) {
683 _impl_._has_bits_[0] |= 0x00000001u;
684 _impl_.end_of_line_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
685 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.TCPClientConfig.end_of_line)
686}
687inline std::string* TCPClientConfig::mutable_end_of_line() {
688 std::string* _s = _internal_mutable_end_of_line();
689 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.TCPClientConfig.end_of_line)
690 return _s;
691}
692inline const std::string& TCPClientConfig::_internal_end_of_line() const {
693 return _impl_.end_of_line_.Get();
694}
695inline void TCPClientConfig::_internal_set_end_of_line(const std::string& value) {
696 _impl_._has_bits_[0] |= 0x00000001u;
697 _impl_.end_of_line_.Set(value, GetArenaForAllocation());
698}
699inline std::string* TCPClientConfig::_internal_mutable_end_of_line() {
700 _impl_._has_bits_[0] |= 0x00000001u;
701 return _impl_.end_of_line_.Mutable(::goby::middleware::protobuf::TCPClientConfig::Impl_::_i_give_permission_to_break_this_code_default_end_of_line_, GetArenaForAllocation());
702}
703inline std::string* TCPClientConfig::release_end_of_line() {
704 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.TCPClientConfig.end_of_line)
705 if (!_internal_has_end_of_line()) {
706 return nullptr;
707 }
708 _impl_._has_bits_[0] &= ~0x00000001u;
709 auto* p = _impl_.end_of_line_.Release();
710 return p;
711}
712inline void TCPClientConfig::set_allocated_end_of_line(std::string* end_of_line) {
713 if (end_of_line != nullptr) {
714 _impl_._has_bits_[0] |= 0x00000001u;
715 } else {
716 _impl_._has_bits_[0] &= ~0x00000001u;
717 }
718 _impl_.end_of_line_.SetAllocated(end_of_line, GetArenaForAllocation());
719 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.TCPClientConfig.end_of_line)
720}
721
722// required string remote_address = 5 [(.goby.field) = {
723inline bool TCPClientConfig::_internal_has_remote_address() const {
724 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
725 return value;
726}
727inline bool TCPClientConfig::has_remote_address() const {
728 return _internal_has_remote_address();
729}
730inline void TCPClientConfig::clear_remote_address() {
731 _impl_.remote_address_.ClearToEmpty();
732 _impl_._has_bits_[0] &= ~0x00000002u;
733}
734inline const std::string& TCPClientConfig::remote_address() const {
735 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.TCPClientConfig.remote_address)
736 return _internal_remote_address();
737}
738template <typename ArgT0, typename... ArgT>
739inline PROTOBUF_ALWAYS_INLINE
740void TCPClientConfig::set_remote_address(ArgT0&& arg0, ArgT... args) {
741 _impl_._has_bits_[0] |= 0x00000002u;
742 _impl_.remote_address_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
743 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.TCPClientConfig.remote_address)
744}
745inline std::string* TCPClientConfig::mutable_remote_address() {
746 std::string* _s = _internal_mutable_remote_address();
747 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.TCPClientConfig.remote_address)
748 return _s;
749}
750inline const std::string& TCPClientConfig::_internal_remote_address() const {
751 return _impl_.remote_address_.Get();
752}
753inline void TCPClientConfig::_internal_set_remote_address(const std::string& value) {
754 _impl_._has_bits_[0] |= 0x00000002u;
755 _impl_.remote_address_.Set(value, GetArenaForAllocation());
756}
757inline std::string* TCPClientConfig::_internal_mutable_remote_address() {
758 _impl_._has_bits_[0] |= 0x00000002u;
759 return _impl_.remote_address_.Mutable(GetArenaForAllocation());
760}
761inline std::string* TCPClientConfig::release_remote_address() {
762 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.TCPClientConfig.remote_address)
763 if (!_internal_has_remote_address()) {
764 return nullptr;
765 }
766 _impl_._has_bits_[0] &= ~0x00000002u;
767 auto* p = _impl_.remote_address_.Release();
768#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
769 if (_impl_.remote_address_.IsDefault()) {
770 _impl_.remote_address_.Set("", GetArenaForAllocation());
771 }
772#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
773 return p;
774}
775inline void TCPClientConfig::set_allocated_remote_address(std::string* remote_address) {
776 if (remote_address != nullptr) {
777 _impl_._has_bits_[0] |= 0x00000002u;
778 } else {
779 _impl_._has_bits_[0] &= ~0x00000002u;
780 }
781 _impl_.remote_address_.SetAllocated(remote_address, GetArenaForAllocation());
782#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
783 if (_impl_.remote_address_.IsDefault()) {
784 _impl_.remote_address_.Set("", GetArenaForAllocation());
785 }
786#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
787 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.TCPClientConfig.remote_address)
788}
789
790// required uint32 remote_port = 6 [(.goby.field) = {
791inline bool TCPClientConfig::_internal_has_remote_port() const {
792 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
793 return value;
794}
795inline bool TCPClientConfig::has_remote_port() const {
796 return _internal_has_remote_port();
797}
798inline void TCPClientConfig::clear_remote_port() {
799 _impl_.remote_port_ = 0u;
800 _impl_._has_bits_[0] &= ~0x00000004u;
801}
802inline uint32_t TCPClientConfig::_internal_remote_port() const {
803 return _impl_.remote_port_;
804}
805inline uint32_t TCPClientConfig::remote_port() const {
806 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.TCPClientConfig.remote_port)
807 return _internal_remote_port();
808}
809inline void TCPClientConfig::_internal_set_remote_port(uint32_t value) {
810 _impl_._has_bits_[0] |= 0x00000004u;
811 _impl_.remote_port_ = value;
812}
813inline void TCPClientConfig::set_remote_port(uint32_t value) {
814 _internal_set_remote_port(value);
815 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.TCPClientConfig.remote_port)
816}
817
818// optional bool ipv6 = 7 [default = false];
819inline bool TCPClientConfig::_internal_has_ipv6() const {
820 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
821 return value;
822}
823inline bool TCPClientConfig::has_ipv6() const {
824 return _internal_has_ipv6();
825}
826inline void TCPClientConfig::clear_ipv6() {
827 _impl_.ipv6_ = false;
828 _impl_._has_bits_[0] &= ~0x00000008u;
829}
830inline bool TCPClientConfig::_internal_ipv6() const {
831 return _impl_.ipv6_;
832}
833inline bool TCPClientConfig::ipv6() const {
834 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.TCPClientConfig.ipv6)
835 return _internal_ipv6();
836}
837inline void TCPClientConfig::_internal_set_ipv6(bool value) {
838 _impl_._has_bits_[0] |= 0x00000008u;
839 _impl_.ipv6_ = value;
840}
841inline void TCPClientConfig::set_ipv6(bool value) {
842 _internal_set_ipv6(value);
843 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.TCPClientConfig.ipv6)
844}
845
846#ifdef __GNUC__
847 #pragma GCC diagnostic pop
848#endif // __GNUC__
849// -------------------------------------------------------------------
850
851
852// @@protoc_insertion_point(namespace_scope)
853
854} // namespace protobuf
855} // namespace middleware
856} // namespace goby
857
858// @@protoc_insertion_point(global_scope)
859
860#include <google/protobuf/port_undef.inc>
861#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto
void MergeFrom(const TCPClientConfig &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
TCPClientConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
TCPClientConfig(TCPClientConfig &&from) noexcept
static const TCPClientConfig & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
friend void swap(TCPClientConfig &a, TCPClientConfig &b)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void set_end_of_line(ArgT0 &&arg0, ArgT... args)
TCPClientConfig(const TCPClientConfig &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const TCPClientConfig * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
TCPClientConfig & operator=(const TCPClientConfig &from)
PROTOBUF_CONSTEXPR TCPClientConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void set_remote_address(ArgT0 &&arg0, ArgT... args)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
TCPClientConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
TCPClientConfig & operator=(TCPClientConfig &&from) noexcept
void CopyFrom(const TCPClientConfig &from)
void UnsafeArenaSwap(TCPClientConfig *other)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const std::string & end_of_line() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void set_end_of_line(ArgT0 &&arg0, ArgT... args)
void CopyFrom(const TCPServerConfig &from)
TCPServerConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void UnsafeArenaSwap(TCPServerConfig *other)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
TCPServerConfig & operator=(const TCPServerConfig &from)
PROTOBUF_NODISCARD std::string * release_end_of_line()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
friend void swap(TCPServerConfig &a, TCPServerConfig &b)
static const TCPServerConfig * internal_default_instance()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
TCPServerConfig(TCPServerConfig &&from) noexcept
TCPServerConfig(const TCPServerConfig &from)
void set_allocated_end_of_line(std::string *end_of_line)
void MergeFrom(const TCPServerConfig &from)
static const TCPServerConfig & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
TCPServerConfig & operator=(TCPServerConfig &&from) noexcept
PROTOBUF_CONSTEXPR TCPServerConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
TCPServerConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
TCPClientConfigDefaultTypeInternal _TCPClientConfig_default_instance_
TCPServerConfigDefaultTypeInternal _TCPServerConfig_default_instance_
The global namespace for the Goby project.
#define ByteSizeLong
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2ftcp_5fconfig_2eproto