4 #ifndef PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_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>
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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_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[1];
61 class MoshRelayConfig;
62 class MoshRelayConfigDefaultTypeInternal;
96 *
this = ::std::move(from);
100 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
101 if (
this != &from) InternalSwap(&from);
109 return _internal_metadata_.unknown_fields();
112 return _internal_metadata_.mutable_unknown_fields();
115 static const ::google::protobuf::Descriptor*
descriptor();
134 return CreateMaybeMessage<MoshRelayConfig>(NULL);
138 return CreateMaybeMessage<MoshRelayConfig>(arena);
140 void CopyFrom(const ::google::protobuf::Message& from)
final;
141 void MergeFrom(const ::google::protobuf::Message& from)
final;
149 ::
google::protobuf::io::CodedInputStream* input) final;
151 ::
google::protobuf::io::CodedOutputStream* output) const final;
153 bool deterministic, ::
google::protobuf::uint8* target) const final;
159 void SetCachedSize(
int size)
const final;
162 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
165 inline void* MaybeArenaPtr()
const {
196 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
198 const ::goby::middleware::protobuf::AppConfig&
app()
const;
208 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
210 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
246 void clear_has_app();
247 void set_has_interprocess();
248 void clear_has_interprocess();
249 void set_has_ip_address();
250 void clear_has_ip_address();
251 void set_has_udp_port();
252 void clear_has_udp_port();
254 void clear_has_bind();
255 void set_has_src_modem_id();
256 void clear_has_src_modem_id();
257 void set_has_dest_modem_id();
258 void clear_has_dest_modem_id();
261 size_t RequiredFieldsByteSizeFallback()
const;
263 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
264 ::google::protobuf::internal::HasBits<1> _has_bits_;
265 mutable ::google::protobuf::internal::CachedSize _cached_size_;
269 ::google::protobuf::internal::ArenaStringPtr ip_address_;
276 friend struct ::protobuf_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto::TableStruct;
284 #pragma GCC diagnostic push
285 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
291 return (_has_bits_[0] & 0x00000002u) != 0;
293 inline void MoshRelayConfig::set_has_app() {
294 _has_bits_[0] |= 0x00000002u;
296 inline void MoshRelayConfig::clear_has_app() {
297 _has_bits_[0] &= ~0x00000002u;
299 inline const ::goby::middleware::protobuf::AppConfig& MoshRelayConfig::_internal_app()
const {
303 const ::goby::middleware::protobuf::AppConfig* p = app_;
318 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
326 if (message_arena == NULL) {
331 if (message_arena != submessage_arena) {
332 app = ::google::protobuf::internal::GetOwnedMessage(
333 message_arena,
app, submessage_arena);
345 return (_has_bits_[0] & 0x00000004u) != 0;
347 inline void MoshRelayConfig::set_has_interprocess() {
348 _has_bits_[0] |= 0x00000004u;
350 inline void MoshRelayConfig::clear_has_interprocess() {
351 _has_bits_[0] &= ~0x00000004u;
353 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MoshRelayConfig::_internal_interprocess()
const {
354 return *interprocess_;
357 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
364 clear_has_interprocess();
366 interprocess_ = NULL;
370 set_has_interprocess();
371 if (interprocess_ == NULL) {
372 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
376 return interprocess_;
380 if (message_arena == NULL) {
385 if (message_arena != submessage_arena) {
386 interprocess = ::google::protobuf::internal::GetOwnedMessage(
389 set_has_interprocess();
391 clear_has_interprocess();
399 return (_has_bits_[0] & 0x00000001u) != 0;
401 inline void MoshRelayConfig::set_has_ip_address() {
402 _has_bits_[0] |= 0x00000001u;
404 inline void MoshRelayConfig::clear_has_ip_address() {
405 _has_bits_[0] &= ~0x00000001u;
409 clear_has_ip_address();
413 return ip_address_.GetNoArena();
416 set_has_ip_address();
422 set_has_ip_address();
423 ip_address_.SetNoArena(
429 GOOGLE_DCHECK(value != NULL);
430 set_has_ip_address();
435 set_has_ip_address();
437 ::std::string(
reinterpret_cast<const char*
>(value), size));
441 set_has_ip_address();
450 clear_has_ip_address();
455 set_has_ip_address();
457 clear_has_ip_address();
465 return (_has_bits_[0] & 0x00000008u) != 0;
467 inline void MoshRelayConfig::set_has_udp_port() {
468 _has_bits_[0] |= 0x00000008u;
470 inline void MoshRelayConfig::clear_has_udp_port() {
471 _has_bits_[0] &= ~0x00000008u;
475 clear_has_udp_port();
489 return (_has_bits_[0] & 0x00000010u) != 0;
491 inline void MoshRelayConfig::set_has_bind() {
492 _has_bits_[0] |= 0x00000010u;
494 inline void MoshRelayConfig::clear_has_bind() {
495 _has_bits_[0] &= ~0x00000010u;
513 return (_has_bits_[0] & 0x00000020u) != 0;
515 inline void MoshRelayConfig::set_has_src_modem_id() {
516 _has_bits_[0] |= 0x00000020u;
518 inline void MoshRelayConfig::clear_has_src_modem_id() {
519 _has_bits_[0] &= ~0x00000020u;
523 clear_has_src_modem_id();
527 return src_modem_id_;
530 set_has_src_modem_id();
531 src_modem_id_ = value;
537 return (_has_bits_[0] & 0x00000040u) != 0;
539 inline void MoshRelayConfig::set_has_dest_modem_id() {
540 _has_bits_[0] |= 0x00000040u;
542 inline void MoshRelayConfig::clear_has_dest_modem_id() {
543 _has_bits_[0] &= ~0x00000040u;
547 clear_has_dest_modem_id();
551 return dest_modem_id_;
554 set_has_dest_modem_id();
555 dest_modem_id_ = value;
560 #pragma GCC diagnostic pop
573 #endif // PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto